今天學(xué)到什么
1.git
的配置
1.1ssh
的配置
ssh-keygen -t rsa -C jj738262446@qq.com
將
id_rsa.pub
里的內(nèi)容復(fù)制到圖2的公鑰里。
1.2git
的三個(gè)區(qū)
git add . //添加到暫存區(qū)
git commit -m"xx" //添加到版本庫
git push //推送到遠(yuǎn)程
1.3git
的一些命令
git log //查看日志
git status //查看狀態(tài)
git reset --hard //回退(前)
git reflog //回退(后)
git clone //克隆遠(yuǎn)程倉庫到本地
git pull //拿倉庫的東西
2.vscode
的環(huán)境配置
2.1插件安裝
open in browser
2.2快捷的配置
將以下代碼替換到步驟3的紅圈處铝耻。
[
{ "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" }
]