Using Git Portable with VSCode Portable
Ah, you've changed devices and ended up having to do this again. Here are the field notes:
First make sure you're using your "Portable" profile in VS Code.
File > Preferences > Profiles > Portable
Now you need to update the path to the Git binary.
The short way...
File > Preferences > Settings
Search for: @ext:vscode.git path
Update path.
The scenic route...
You're going to get an annoying pop-up error message, every time you open VS Code on a computer that does not have Git installed.
From the error msg, click the cog > Manage extension
Click the cog to go into extension settings.
Search for 'path' to bring up relevant settings. Click the cog next to 'Git Path' to make sure the setting is being synced to the profile.
Click "Edit in settings.json" to open the settings page for this profile.
Add the path to the git binary, save and reload the extension. Don't forget to escape the backslash character and omit any extension.
Warning
Do not copy this path, use the whatever the actual path is. You may not use this version anymore, so always check the path.
Reload VS Code. Should be all good now.
Note
You will not be able to use git in the integrated terminal but you should be able to use the Git extension. Outside of VS Code you can use Git Portable bash/cmd/gui as normal.
Reference: visual studio code - Use portable VSCode with portable Git - Stack Overflow