Changing .gitconfig location on Windows

后端 未结 13 2516
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 11:49

By default on Windows Git places global .gitconfig in c:\\documents and settings\\user\\

How can I change that position so .gitconfig is stored in

13条回答
  •  盖世英雄少女心
    2020-11-27 11:53

    If you are on windows and having problem either changing environment variables or mklink because of insufficient privileges, an easy solution to your problem is to start git batch in another location.

    Just right click on Git Bash.exe, click properties and change the "Start in" property to c:\my_configuration_files\.

提交回复
热议问题