How do I change the default location for Git Bash on Windows?

后端 未结 18 1020
暗喜
暗喜 2020-11-28 01:32

I am using Git on Windows 7 and access my repositories through Git Bash. How can I change the default location that Git Bash opens in a convenient folder when I start it?

18条回答
  •  清歌不尽
    2020-11-28 02:22

    Make a Git Bash shortcut to Desktop for convenience then right click on the icon goto properties. Here you will find the Start in: section with a text box. Replace the path you want, for example like:

    %USERPROFILE%\Desktop
    

    Then open it directly by clicking on the icon. You will get the default Desktop path in Git Bash.

提交回复
热议问题