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
- 4> The end....
- 5> 参考:https://review.typo3.org/Documentation/error-change-upload-blocked.html
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.
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.