无法在XCode 4.6中拍摄快照或使用git

f.p*_*ion 2 git snapshot xcode4.6

在我尝试创建快照或使用Git升级到Xcode 4.6后,我得到了这个弹出窗口.

请告诉我你是谁.

git config --global user.email"you@example.com"

git config --global user.name"你的名字"

设置帐户的默认身份.

省略--global仅在此存储库中设置标识.

致命:无法自动检测电子邮件地址(得到'Faisal @(null).(无)')

我是Git和版本控制的新手,所以我希望有人可以解释这意味着什么,为什么它突然出现,以及如何解决它.

ent*_*ops 12

在终端中运行以下命令:

git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Run Code Online (Sandbox Code Playgroud)

you@example.com用您的电子邮件地址和Your Name您的姓名替换.这些信息将告诉Git您是谁,以及如何标记您的提交.如果Git没有这些信息,它将无法提交.