不幸的是,我们不能安装Git和Visual Studio Code。因此使用这两个版本的“便携”版本。寻找Windows10中VS代码中的平滑"bash“集成
我们已经在git.path
中尝试了各种组合,并在VS-Code的用户和工作区中添加了设置(如下所示)
{
"workbench.colorTheme": "Default Dark+",
"git.ignoreMissingGitWarning": true,
"git.enabled": true,
"git.path": "C:\\installables\\PortableGit\\mingw64\\bin\\git.exe",
"terminal.integrated.shell.windows": "C:\\installables\\PortableGit\\bin\\bash.exe"
}
Git便携包在不同的地方有git.exe,如下所示。
./PortableGit/bin/git.exe
./PortableGit/cmd/git.exe
./PortableGit/mingw64/bin/git.exe
./PortableGit/mingw64/libexec/git-core/git.exe
./PortableGit/git-bash.exe
./PortableGit/git-cmd.exe
./PortableGit/mingw64/share/git/git-wrapper.exe
不太确定,需要哪一个"git*.exe“才能将可移植的VS代码集成到它的外壳中。有没有人有类似的设置?
发布于 2021-08-19 07:50:39
./PortableGit/bin/git.exe
就足够了。我将它与便携VSCode结合使用,没有问题。
另一种方法是正确设置路径,然后启动VSCode。
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%GH%\mingw64\libexec\git-core;%PATH%
https://stackoverflow.com/questions/68843873
复制相似问题