day01
今天学到了什么
1.git的配置
#######1.1ssh的配置将id-rsa.pub的内容复制到钥匙里面
1.2git的三个区
工作区,暂存区,版本区
git init
git config --global user.name chengying
git config --global user.email 1295798361@qq.com
git config --global --list
git config --get user.name
git add shuju
//添加所有修改的内容
git add .
git commit -m"css"
git status
git diff
2.版本回退
git log
git log --pretty=online
1.3.配置ssh
ssh-keygen -t rsa -C1295798361@qq.com
3.推送分支
git push
2.vscode的环境配置
2.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" }
]
[
{ "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" }
]