1、下載安裝vscode
https://code.visualstudio.com/Download
2、安裝git
3、在vscode中安裝GitLens插件
4、打開終端
點擊會顯示當前更改的項目
5、提交更改的文件,會提示輸入用戶名、密碼,這里的密碼即是令牌,令牌在第一次創建的時候顯示,切記切記切記!!!
注意:git中報unable to auto-detect email address 錯誤的解決辦法
每次重新新建工程時候git的配置信息都不能直接在命令行里修改 用戶名 和郵箱,不會生效,且報錯
*?Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your accounts default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got Administrator@PC-20150120BUBR.(none))
參考網上解決辦法就是
找到工程目錄的.git文件夾,打開之后找到config文件,在最后邊加上一句話
[user]
email=your email
name=your name