When adding a portable version of Git to Visual Studio Code, there are two things to be careful of:
- The path to the git executable is not in the main folder. It is in
\cmd\git.exefor Linux or Windows.
- When adding the git path to Visual Studio Code, open the settings.json file (Settings, Preferenes) and find the Git section. Add the git.path variable, but be sure to use double backslashes:
I’m also playing with the Visual Studio Code Github extension but I haven’t had much success.
To get it to work, get a Github Personal Access token and then, in VSC, press
Ctrl + Shift + P to open the command bar, then type in
Github: Set Personal Access Token.... Add your code, then press Enter. And then apparently it should work, but it isn’t doing so for me.
With help from: 1, 2