吉特:请告诉我你是谁 [英] Git: Please tell me who you are

查看:48
本文介绍了吉特:请告诉我你是谁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows的Git Gui中打开了我的存储库,然后按了commit.我有

I opened my repository in the Git Gui for Windows, and pressed commit. I got

无法获取您的身份:

Unable to obtain your identity:

请告诉我您是谁致命:无法自动检测电子邮件地址(获取'foo @ int123123.(无)')

Please tell me who you are [...] fatal: unable to auto-detect email address (got 'foo@int123123.(none)')

我在其中匿名了电子邮件地址.

where I anonymized the email address.

但是,我已经使用git控制台(对于Windows)在全局范围内设置了电子邮件地址.为了进行检查,我将自己定向到存储库文件夹中,然后输入

However, I had already set up the email address globally using the git console (for windows). To check, I directed myself into the repository folder and entered

git config --list

输出为

user.name=myName
user.mail=myMail

再次将

匿名化,其中myMail严格不是foo@int123123.我该怎么办?

again anonymized, where myMail strictly is not foo@int123123. What am I to do?

推荐答案

在git控制台中进行以下更改,

In git console make the following changes,

$ git config --global user.name "John Doe"

$ git config --global user.email johndoe@example.com

现在,尝试提交!

这篇关于吉特:请告诉我你是谁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆