fatal One or more refs for names blocks change upload


今天在提代码时,发现push不到gerrit仓库了,十分的奇怪,和同事沟通后发现,同事可以直接git push origin master而且也可以合并,都是没有问题的,但是就是在gerrit上无法查看,在网上查找资料后找到如下的解决方案

fatal: One or more refs/for/ names blocks change upload
fatal: The remote end hung up unexpectedly


  • 1> 登录git仓库服务器
  • 2> 进入到有问题仓库的目录
  • 3> 执行如下命令
git for-each-ref refs/for
# 如果第一条命令执行完后有输出,再执行下面的命令。
for n in $(git for-each-ref --format='%(refname)' refs/for);do git update-ref -d $n; done
Yesterday is history.
Tomorrow is a mystery.
But today is a gift.
That is why it's called the present.
The old game: give a wolf a taste, then keep him hungry.
posted @ 2017-05-25 16:37  ZhangRuoxu  阅读(779)  评论(0编辑  收藏  举报