· df · 1 min read

VS Code & Portable GIT shell integration in Windows

cygwingitVSCodeportable

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 )
  • Search for 'Open Workspace Settings (JSON)' and press Enter
  • Update the settings with following setting
    {
"workbench.colorTheme": "Default Dark+",
"git.ignoreMissingGitWarning": true,
"git.enabled": true,
"terminal.integrated.profiles.windows": {
"git_bash"" {
"path": "C:\\installables\\PortableGit\\bin\\bash.exe"
}
},
"terminal.integrated.defaultProfile.windows": "git_bash"
}
  • Now close the VS Code and reopen it and check for shell. You should have a Linux/bash type shell with git included