美文网首页
DAY01 2018-07-09

DAY01 2018-07-09

作者: 七月七日555 | 来源:发表于2018-07-09 18:24 被阅读0次

    今天学到了什么

    1. GIT的配置

    • 1.1 git的三个区
    三个区.png
    git add . //添加到暂存区
    git commit -m"xxx" //添加到版本库
    git push //推送到远程
    
    • 1.2 克隆远程仓库到本地
    git clone xxx
    
    • 1.3 版本回退
    git reset --hard XXXXX
    
    • 1.4 和远程仓库保持同步
    git pull //可以将远程仓库里的程序保存到本地
    

    2. SSH

    • 2.1 ssh的配置
    ssh-keygen -t rsa -C 395775347@qq.com
    
    • 2.2 步骤
    1.png 2.png 3.png
    • 2.3列出全局配置的相关信息
    git config --list --global
    

    3.vscode的环境配置

    • 3.1插件安装
    Open in browser
    
    • 3.2快捷的配置
    将以下内容按后面的步骤粘贴进keybindings.json
    [
    { "key": "alt+/",  "command": "editor.action.triggerSuggest","when": "editorTextFocus" },  
        { "key": "ctrl+d", "command": "editor.action.deleteLines","when": "editorTextFocus" },  
        { "key": "ctrl+alt+down","command": "editor.action.copyLinesDownAction", "when": "editorTextFocus" },  
        { "key": "ctrl+alt+up", "command": "editor.action.copyLinesUpAction", "when": "editorTextFocus" },  
        { "key": "shift+enter", "command": "editor.action.insertLineAfter", "when": "editorTextFocus && !editorReadonly" }  ,
        {"key":"ctrl+w","command": "extension.openInBrowser" , "when": "editorTextFocus" }
    ]
    
    4.png 5.png 6.png

    相关文章

      网友评论

          本文标题:DAY01 2018-07-09

          本文链接:https://www.haomeiwen.com/subject/twjtpftx.html