git合并提示“致命:空识别” [英] git merge prompt "fatal: empty ident"

查看:143
本文介绍了git合并提示“致命:空识别”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  git mergemerge当我想使用git从cl分支合并变更时,我输入: HEAD cl 

我收到以下消息:

< blockquote>

* 请告诉我你是谁。

运行



git config --global user.emailyou@example.com


git config --global user.name您的姓名



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



致命:空标识不允许使用


所以,我输入:

pre $ g $ config chandler.chenchen lei

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


$ g $ git config --global user.emailyou@example.com
git config - 全局用户名你的名字

这到底是如何以 git config chandler.chenchen lei给你?!



以下是你需要运行的内容:

  git config --global user.emailput@your.email.address.here
git config --global user.nameput your姓名或昵称


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

git merge "merge" HEAD cl

I got the following anwser:

* 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: empty ident not allowed

So, I typed:

git config  chandler.chen "chen lei"

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

解决方案

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

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

Here's what you need to run:

git config --global user.email "put@your.email.address.here"
git config --global user.name "put your name or nickname here"

这篇关于git合并提示“致命:空识别”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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