SYSTEM PATH Variable

You will need administrator on the local box – to set the SYSTEM PATH variable as shown below

  1. Click on Advanced System Settings.
  2. Click on Environment Variables.
  3. Under System Variables, look for the path variable and click edit.
  4. Add the path to git’s bin and cmd at the end of the string like this: ;C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd.

Gitbash shortcut using HOME as an Environment variable

Define a new ‘%HOME%’ variable. And update your shortcut to use this variable

Change gitbash shortcut properties

Click this and define a new variable, HOME, with the value set to your working directory (e.g. c:\MYWINDOWSDIR\workspace\repo).

Update the  gitbash shortcut to use this new variable  %HOME%. Right click your gitbash shortcut and click Properties. Change the value of ‘Start in:’ field to %HOME%. Click OK.

Summary

That’s it.

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.