今天学到了什么?

2018-07-09  本文已影响0人  程银

day01

今天学到了什么

1.git的配置

#######1.1ssh的配置 [图片上传中...(02.png-f23d13-1531133556723-0)]
02.png
03.png

将id-rsa.pub的内容复制到钥匙里面

1.2git的三个区

06.png

工作区,暂存区,版本区
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

05.png

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" }
]

08.png
09.png
[  
    { "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" }
]










上一篇下一篇

猜你喜欢

热点阅读