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?
Change Default Directory in Git BashRight-click on Git Bash's shortcut icon and go to the Properties. In the Start in field, paste the path to the desired folder, e.g. D:\WorkDir.
Quick'n'dirty solution. Save it, open Git Bash and execute cd ~ . You should be in a directory /c/my/custom/home now. Everything that accesses the user's profile should go into this directory instead of your Windows' profile on a network drive.
--open-shell
to --open-shell=c:\your_dir
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With