Change the default directory of Git Bash in Windows

By default, Git Bash on Windows will open in your user folder.

In order to change this to another folder, you need edit two things in the Git Bash shortcut:

1. Remove the --cd-to-home from Target field.
2. Change "Start In" field to be the path to your desired startup folder.



If you want to edit the shortcut in your start menu, select "Open file location":



And then right-click the Git Bash shortcut in the folder that opens, and select Properties.

Comments

Popular posts from this blog

How to fix the weird audio bug in Kingdom Come: Deliverance

How to install and play Curse of Monkey Island on Android

How to get rid of coil whine just by tweaking BIOS

Minecraft recv failed error... fixed!

Where does uTorrent keep its .torrent files?

Stop the CxUiUSvc service from eating your RAM