DAY01 2018-07-09

今天学到了什么

1. GIT的配置

  • 1.1 git的三个区
DAY01 2018-07-09_第1张图片
三个区.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 [email protected]
  • 2.2 步骤
DAY01 2018-07-09_第2张图片
1.png
DAY01 2018-07-09_第3张图片
2.png
DAY01 2018-07-09_第4张图片
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" }
]
DAY01 2018-07-09_第5张图片
4.png
DAY01 2018-07-09_第6张图片
5.png
DAY01 2018-07-09_第7张图片
6.png

你可能感兴趣的:(DAY01 2018-07-09)