By default the startup directory where you appear when you launch Git Bash is /, that is the installation folder of Git Bash.
If you need to find out the path to /, you can run this command:
$ explorer .
It opens the current directory in the File Explorer so you will see the path in the address bar.
Cool Tip: How to change a Home (~) directory in Git Bash! Read More →
Change Default Directory in Git Bash
To change the default startup directory of Git Bash, do the following steps:
- Right-click on Git Bash’s shortcut icon and go to the
Properties - In the
Start infield, paste the path to the desired folder, e.g.D:\WorkDir - Remove
--cd-to-homefrom theTargetfield if it exists
Cool Tip: How to clear a commands history in Git Bash! Read More →
Perfect! Thanks so much!
Thanks a ton..!! Solved a related issue that had been eating my time a lot.
Thanks a lot! I was missing the last step. It works now!
Thanks, solved it for me.
I am finding this shit for more than 1/2 hr on youtube . Thanks mate this works