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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章