[英]Will the git installation creates the .gitconfig file in the user's home directory?
When exactly.gitconfig is created?究竟什么时候创建.gitconfig? Is it during the git installation or after executing the git config --global
command?是在 git 安装期间还是在执行git config --global
命令之后?
From what I know, it is when you run git config --global
.据我所知,当您运行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.如果您全新安装 git 并运行git config --global -l
它会告诉您找不到当前配置。 After you configure your first global item, the file will exist.配置第一个全局项目后,该文件将存在。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.