一、選中文件-->首選項(xiàng)-->設(shè)置,搜索git,在setting.json中添加"git.path":"D:/soft/git/Git/bin/git.exe"
二、git bush中設(shè)置Git 全局設(shè)置:
git config --global user.name "用戶名"
git config --global user.email "用戶郵箱"
三、設(shè)置讓VSCode記住git賬號(hào)和密碼:git config --global credential.helper store