Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git Gerrit更改Id存在,但仍然得到错误_Git_Merge_Branch_Gerrit_Master - Fatal编程技术网

Git Gerrit更改Id存在,但仍然得到错误

Git Gerrit更改Id存在,但仍然得到错误,git,merge,branch,gerrit,master,Git,Merge,Branch,Gerrit,Master,我尝试将更改发布到Gerrit,但出现错误:[65de9f6]提交消息页脚中缺少更改Id 我查看git日志并查看更改ID;如果我执行git提交,也一样——修改 (提交消息) 我在{my_repo}.git\hooks\commit msg中也有commit msg 我做错了什么?Gerrit正在通知commit 65de9f6缺少更改Id。这可能不是您的commit,而是某个父级 首先,检查更改的提交编号,然后在提交树中搜索commit 65de9f6 如果它是提交的父级,那么您需要理解为什么要

我尝试将更改发布到Gerrit,但出现错误:[65de9f6]提交消息页脚中缺少更改Id

我查看git日志并查看更改ID;如果我执行git提交,也一样——修改

(提交消息)

我在{my_repo}.git\hooks\commit msg中也有commit msg


我做错了什么?

Gerrit正在通知commit 65de9f6缺少更改Id。这可能不是您的commit,而是某个父级

首先,检查更改的提交编号,然后在提交树中搜索commit 65de9f6

如果它是提交的父级,那么您需要理解为什么要将此提交与提交一起推(每个新提交都会在Gerrit中生成不同的新更改)


如果可以将这两个提交发送给Gerrit,则需要将更改Id添加到65de9f6提交。如果出现问题,则需要从树中删除额外的提交。在这两种情况下,您都需要使用“git rebase-i”命令。

这是唯一一个不在远程分支上的本地提交?是的,这是唯一一个65DE9F6-这是您要推送的提交的提交哈希吗?您是对的。在GIT扩展中,我使用Rebase Interactive来解决这个问题。太好了,你能接受这个答案吗?
Change-Id: I1e6716a5ec101840653802928ec972c6a0e19808