在vscode中使用git前,下載git免安裝版解壓到目錄。settings.json中需要設(shè)置"git.path":?"D:\\data\\git\\PortableGit\\bin\\git.exe"重啟vscode后生效。