git git合并提示“致命:空标识”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10583746/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 13:41:38  来源:igfitidea点击:

git merge prompt "fatal: empty ident"

gitmerge

提问by welkinwalker

when I want to merge change from the "cl" branch using git, I typed:

当我想使用 git 从“cl”分支合并更改时,我输入:

git merge "merge" HEAD cl

I got the following anwser:

我得到了以下答案:

*Please tell me who you are.

Run

git config --global user.email "[email protected]"
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: empty ident not allowed

*请告诉我你是谁。

git config --global user.email "[email protected]"
git config --global user.name "你的名字"

设置您帐户的默认身份。省略 --global 以仅在此存储库中设置身份。

致命:不允许空标识

So, I typed:

所以,我输入:

git config  chandler.chen "chen lei"

however, after config the account information, merge still get the former result.

但是,在配置帐户信息后,合并仍然得到以前的结果。

回答by ThiefMaster

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

How exactly did this end up as git config chandler.chen "chen lei"for you?!

git config chandler.chen "chen lei"对你来说到底是怎么回事?!

Here's what you need to run:

这是您需要运行的内容:

git config --global user.email "[email protected]"
git config --global user.name "put your name or nickname here"

回答by Phil Miller

Even after fixing the identity thing, I have no idea what that merge command is trying to do. It should probably be just git merge cl

即使在修复身份问题之后,我也不知道合并命令试图做什么。应该只是git merge cl