How do I show my global Git configuration?

后端 未结 12 2187
遇见更好的自我
遇见更好的自我 2020-12-04 04:28

I\'d like to show all configured Git sections.

I only found git config --get core.editor, and I\'d like to output everything that\'s configured globally

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 05:06

    On Linux-based systems you can view/edit a configuration file by

    vi/vim/nano .git/config
    

    Make sure you are inside the Git init folder.

    If you want to work with --global config, it's

    vi/vim/nano .gitconfig
    

    on /home/userName

    This should help with editing: https://help.github.com/categories/setup/

提交回复
热议问题