奇怪的Git错误 [英] Bizarre Git Error
本文介绍了奇怪的Git错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我得到了
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'axmill@axmill-ThinkPad-T400.(none)')
错误.但是,我已经输入了电子邮件和姓名.
error. But, I already entered my email and name.
我正在尝试进行提交,但失败了.但是我已经使用git config工具输入了我的电子邮件和姓名.
I was trying to make a commit, and it failed. But I had entered my email and name with the git config tool.
Git配置输出:
user.email=anchorfall551@gmail.com
user.name=Axmill
推荐答案
您可以使用以下方法检查全局配置和本地配置的内容:
You can check the content of your global config and local config with:
git config --global -l
git config --local -l
您至少应该在以下条目之一中看到:
You should see at least in one of those entries like:
user.name=VonC
user.email=vonc@laposte.net
(无引号)
确保使用正确的命令(例如此答案)
Make sure you are using the right commands (like in this answer)
这篇关于奇怪的Git错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文