今天学到什么?
1.SSH公钥配置
ssh-keygen -t rsa -C+邮箱
1.1
1.2添加公钥
-公钥标题自定义
1.3
c/用户/student/.ssh/id_rsa.pub
复制到1.2的公钥中
1.4添加完成
2 git的3个区
2.1
新建项目
2.2
2.2.1复制ssh公钥
D/根目录——右键Git Bash
git clone +粘贴的公钥
--创建项目文件夹XXX
2.2.2进入文件夹XXX
以此输入以下代码:
git add . //添加到暂存区
git commit -m"xxx" //添加到版本库
git push //推送到远程
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" }
]