DAY01 2018-07-09
2018-07-09 本文已影响0人
七月七日555
今天学到了什么
1. GIT的配置
-
1.1
git的三个区
![](https://img.haomeiwen.com/i13085827/9f87f0d632888b94.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
步骤
![](https://img.haomeiwen.com/i13085827/375ffa258852bf4c.png)
![](https://img.haomeiwen.com/i13085827/cdeb87e488347e6c.png)
![](https://img.haomeiwen.com/i13085827/d3aa2540d273474c.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" }
]
![](https://img.haomeiwen.com/i13085827/22a8ecf8cc4da864.png)
![](https://img.haomeiwen.com/i13085827/ddf97705fd933b4b.png)
![](https://img.haomeiwen.com/i13085827/0fc8944c1682befa.png)