简体   繁体   中英

I am missing the gitconfig file in my home directory, in fact it doesn't exist anywhere

There is no gitconfig file in any directory, I'm sure of that. I'm wondering what the best course of action is form here as its very inconvenient not having the file. I've tried reinstalling git but that effects very little.

You can simply:

  • check where it could be with (using Git 2.26 or more):

     git config --show-origin --show-scope --global -l
  • create one with, for instance:

     git config --global user.name <me> git config --global user.email <me@email.com>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM