天天看點

windows下VS Code中配置gitwindows下VS Code中配置git

windows下VS Code中配置git

1.如下圖,在VS Code左下角找到Settings。

windows下VS Code中配置gitwindows下VS Code中配置git

2.打開Settings,在Settings中搜尋git.path,選擇Edit in settings.json。

windows下VS Code中配置gitwindows下VS Code中配置git

3.右邊編輯區添加git.path内容為git的安裝目錄中cmd檔案夾下git.exe的路徑。

windows下VS Code中配置gitwindows下VS Code中配置git

4.在vs中每次更新代碼都會要輸入賬号密碼,友善起見,可以配置一下讓git記住密碼賬号(在此之前先送出一次,輸入使用者名和密碼)。

git config --global credential.helper store
           
windows下VS Code中配置gitwindows下VS Code中配置git