git push 报错:you are not allowed to upload merges

git rebase

Cannot rebase: You have unstaged changes.

git stash # 每次 push 前

git pull --rebase

git push origin HEAD:refs/for/master # gerrit review

git pull

git stash pop

参考:https://blog.csdn.net/yuzx2008/article/details/50863939

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页