day01
1.git的簡(jiǎn)單應(yīng)用
1.安裝git軟件并進(jìn)行配置
簡(jiǎn)單的配置
打開(kāi)git base
配置全局信息在命令行中輸入
git config --global user.name +名稱(chēng)
git config --global user.email +郵箱
2.注冊(cè)碼云
3.項(xiàng)目
1.新建項(xiàng)目
在碼云中登陸并選擇新建項(xiàng)目選項(xiàng)
2.克隆
復(fù)制css中地址
在相應(yīng)文件夾打開(kāi)git
輸入git cloen 后面黏貼復(fù)制的地址,回車(chē)

1.png
3.新建文檔
在生成的文檔中新建txt文檔
4.進(jìn)入文檔右擊空白地段選擇git
輸入git add .添加到暫存區(qū)
輸入git commit -m'1',將1文件添加到版本庫(kù)
輸入git push上傳到項(xiàng)目

222.png

333.png
4.撤回版本
用git log可查看之前的版本

555.png
回到之前的版本用git reset --hard 版本號(hào)
用git reflog查看命令歷史,確定要回到未來(lái)的哪個(gè)版本

234234234.png
上述過(guò)程中三個(gè)區(qū)的概念如圖所示

222222.png
5.配置ssh
打開(kāi)git base 輸入ssh-keygen -t rsa -C +郵箱地址生成ssh
生成的文件如圖所示在我的文檔中的如下如圖位置

22.png
用txt格式打開(kāi)id_rsa.pub
復(fù)制文檔中的全部信息
打開(kāi)碼云

11.png
添加ssh公鑰
以后clone的項(xiàng)目使用SSH就不用輸入用戶密碼了
2.Visual Studio Code的簡(jiǎn)單應(yīng)用
1.
打開(kāi)軟件Visual Studio Code在擴(kuò)展中搜索open in browser并安裝
安裝完成如圖

4322.png
2.
打開(kāi)文件-首選項(xiàng)-鍵盤(pán)快捷方式
點(diǎn)開(kāi)如圖所示位置

2133.png
將如下代碼復(fù)制進(jìn)去
[
{ "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" }
]
3.
新建html文件

123123123.png
ctrl+s保存
ctrl+w查看

3243242.png