简体   繁体   中英

Will the git installation creates the .gitconfig file in the user's home directory?

When exactly.gitconfig is created? Is it during the git installation or after executing the git config --global command?

From what I know, it is when you run git config --global .

This file is created after your first configuration entry. If you have a fresh install of git and you run git config --global -l it will tell you it cannot find the current configuration. After you configure your first global item, the file will exist.

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