Changing .gitconfig location on Windows

后端 未结 13 2391
伪装坚强ぢ
伪装坚强ぢ 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 12:18

    For me it worked very simple:

    1. Copy ".gitconfig" from old directory: to %USERPROFILE% (standard in "c:\users\username")
    2. Right click on start-icons of GITGUI and GITBASH and change "run in": "%HOMEDRIVE%%HOMEPATH%" to "%USERPROFILE%". Of cource you can use any other directory instead of "%USERPROFILE%".

    screen shot before

    screen shot after

    0 讨论(0)
提交回复
热议问题