Windows Portable Git integration to Portable Visual Studio Code: Which git.exe to use?



Unfortunately we can’t install Git nor Visual Studio Code. Hence using "portable" versions of both. Looking for a smooth "bash" integration within VS-code in Windows 10

we have tried various combinations in the git.path and have added settings in user & workspace of VS-Code (as below)

    "workbench.colorTheme": "Default Dark+",
    "git.ignoreMissingGitWarning": true,
    "git.enabled": true,
    "git.path": "C:\\installables\\PortableGit\\mingw64\\bin\\git.exe",
    "": "C:\\installables\\PortableGit\\bin\\bash.exe"

The Git portable have git.exe in Various places as below.


Not exactly sure, which of the "git*.exe" is required so the portable VS-code can integrate into its shell. Anyone had similar setup/settings?


./PortableGit/bin/git.exe is enough. I use it in combination of a portable VSCode without issue.

The other approach is to set the path correctly, then launch VSCode.

set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%GH%\mingw64\libexec\git-core;%PATH%

Answered By – VonC

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More