gitvisual-studio-code

Use portable VSCode with portable Git


I downloaded VSCode portable from and Git portable.

Afterwards I entered the following to open my VSCode's setting.json: enter image description here

and inserted: enter image description here

Problem is I still cannot perform some git task directly from VSCode, because it seems VSCode cannot find it. Error Message from VSCode: enter image description here

I have double checked if the git.path is pointing correct file: enter image description here

Can somebody tell me what I did wrong? Thank you in advance. Best regards, Gunardi


Solution

  • I also stumbled across this error today. It turns out that you have to leave out the ending. git instead of git.exe

    "git.path": "C:\\Users\\XXX\\Git\\cmd\\git"