How to change git shell's start directory in windows 7

user2565010 picture user2565010 · Sep 10, 2013 · Viewed 23.3k times · Source

I downloaded and installed the programs offered by GitHub including Git Shell.

The problem is that I want to set up the home directory of the Git Shell program to a custom one, but I don't know how to do that.

I tried changing the "start in" field from the properties menu of the Git Shell shortcut but it didn't work.

Can anybody please give me some information on how to change the home directory of the Git Shell to a custom one?

Answer

Honest Abe picture Honest Abe · Jul 17, 2015
  1. Right click on Git Shell
  2. Choose Properties
  3. Move to the end of the Target field
  4. Change --open-shell to --open-shell=c:\your_dir