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

后端 未结 18 1008
暗喜
暗喜 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:03

    After installing msysgit I have the Git Bash here option in the context menu in Windows Explorer. So I just simply navigate to the directory and then open Bash right there.

    I also copied the default Git Bash shortcut to the desktop and edited its Start in property to point to my project directory. It works flawlessly.

    Windows 7x64, msysgit.

提交回复
热议问题