我只是不能在Ubuntu 14.04上提交git
错误消息是:
git:致命的无法自动检测电子邮件地址(收到“一些错误的电子邮件”)
我尝试了git-config,不管有没有--global选项,设置了user.name和user.mail,但是没有任何效果。
发布于 2014-12-05 14:25:31
可能是一个错误:将user.mail设置为没有e。通过在全局配置中设置user.email来修复
$ git config --global user.email "you@example.com"已经被问到:为什么Git不允许我在配置之后提交?
可以肯定的是:
$ git config --local -l发布于 2015-12-22 05:48:28
确保您应该在主目录中,而不是在本地目录中。同时设置您的用户名和电子邮件ID。
git config --global user.email "you@example.com"
git config --global user.name "github_username"然后按照GitHub上的步骤进行操作。
发布于 2018-08-26 16:26:25
如果是git config --global user.email "you@domain.com" git config --global user.name "github_username"
不要像我这样工作,你可以用:
git config --replace-all user.email "you@domain.com"
git config --replace-all user.name "github_username"https://stackoverflow.com/questions/25671785
复制相似问题