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.
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
Post a Comment