Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing default locations on Git Bash

I am new to using Git Bash and Git Hub. Upon installing Bash, I accepted all of the default settings. In doing so, made my network drive the default directory. I will be using this offline and need to change the default directory to my local drive. I have tried to change the location path of GitBash to the local drive but did this did not work. How can I change this? Also, is there any alterations that need to be made to the GitHub account?

like image 390
Barry Avatar asked Aug 11 '15 13:08

Barry


1 Answers

In my case I had to take the following steps to change the default startup directory of the Git Bash in Windows:

1) Right click on the Git Bash icon in your Windows Start menu and select Properties. In Windows 10 you may have to right click on Git Bash -> More -> Open file location -> Right click on the shortcut -> Properties

2) In the Start in field, paste the path to your desired folder, e.g. D:\git.

3) Remove --cd-to-home from the Target field.

like image 100
Piotr Berebecki Avatar answered Oct 07 '22 23:10

Piotr Berebecki