DAY01

2018-07-09  本文已影响0人  chenghaojs

今天学到什么

1.git的配置

1.1ssh的配置
ssh-keygen -t rsa -C jj738262446@qq.com
01.png
02.png
03.png

id_rsa.pub里的内容复制到图2的公钥里。

1.2git的三个区
04.png
git add . //添加到暂存区
git commit -m"xx" //添加到版本库
git push //推送到远程
1.3git的一些命令
git log //查看日志
git status //查看状态
git reset --hard //回退(前)
git reflog //回退(后)
git clone //克隆远程仓库到本地
git pull //拿仓库的东西

2.vscode的环境配置

2.1插件安装
open in browser
插件.png
2.2快捷的配置

将以下代码替换到步骤3的红圈处。

[  
    { "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" }
]
步骤1.png
步骤2.png
步骤3.png
上一篇下一篇

猜你喜欢

热点阅读