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