今天學(xué)到什么裙犹?
1.SSH公鑰配置
ssh-keygen -t rsa -C+郵箱
1.1
1.2添加公鑰
-公鑰標(biāo)題自定義
1.3
c/用戶/student/.ssh/id_rsa.pub
復(fù)制到1.2的公鑰中
1.4添加完成
2 git的3個(gè)區(qū)
2.1
新建項(xiàng)目
2.2
2.2.1復(fù)制ssh公鑰
D/根目錄——右鍵Git Bash
git clone +粘貼的公鑰
--創(chuàng)建項(xiàng)目文件夾XXX
2.2.2進(jìn)入文件夾XXX
以此輸入以下代碼:
git add . //添加到暫存區(qū)
git commit -m"xxx" //添加到版本庫(kù)
git push //推送到遠(yuǎn)程
3 .vscode的環(huán)境配置
3.1插件安裝
Open in browser
3.2快捷的配置
將以下內(nèi)容按后面的步驟粘貼進(jìn)(keybindings.json)
代碼來(lái)源于
[
{ "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" }
]