问题描述
我的全局 git 配置有一些问题。用户名和电子邮件都自动设置为空白。我不知道这种行为是否存在模式,但是当我尝试提交时,git 通常会告诉我设置用户名和电子邮件。
使用 git config --global
更新或直接编辑我的 .gitconfig
文件都有效,但一段时间后它们又消失了。
重置前的文件内容:
[user]
name = <name>
email = <email>
[core]
editor = atom --wait
excludesfile = /Users/christian/.gitignore_global
[pull]
rebase = false
重置后的文件内容:
[user]
name =
email =
[core]
editor = atom --wait
excludesfile = /Users/christian/.gitignore_global
[pull]
rebase = false
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)