Visual Studio Code & GIT Portable shell Integration
Summary
Many of your corporate laptop cannot install programs and it is quite good to have them as portable executables. Here we find a way to have Portable VS Code and Portable GIT and integrate the GIT shell into VS Code
Pre-Reqs
Steps
- Create a directory in your Windows device (eg: C:\installables\)
- Unpack GIT portable into the above directory (eg it becomes: C:\installables\PortableGit)
- Now unpack Visual Studio (VS) Code and run it. The default shell would be windows based
- Update User or Workspace settings of VS Code (ShortCut is: Control+Shift+p )
- Update the settings with following setting
{
"workbench.colorTheme": "Default Dark+",
"git.ignoreMissingGitWarning": true,
"git.enabled": true,
"git.path": "C:\\installables\\PortableGit\\bin\\git.exe",
"terminal.integrated.shell.windows": "C:\\installables\\PortableGit\\bin\\bash.exe"
}
- Now close the VS Code and reopen it and check for shell. You should have a Linux/bash type shell with git included