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 install and play Curse of Monkey Island on Android

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

How to get rid of coil whine just by tweaking BIOS

Create a sleep timer for Youtube, Twitch, Netflix etc. on Windows 10

Fix the login loop in Xubuntu 24.04

How to find the ScummVM game folder on Android