git push you are not allowed to upload merges

青旅半醒 2022-05-31 00:44 687阅读 0赞

git push报错

  1. ! [remote rejected] HEAD -> .../master (you are not allowed to upload merges)
  2. error: 无法推送一些引用到 'ssh://yuzx@xxx.xxx.com:29418/xxxrowd'

解决办法

1.先执行

  1. git stash
  2. git pull --rebase

2.进行push
3.最后

  1. git pull
  2. git stash pop

发表评论

表情:
评论列表 (有 0 条评论,687人围观)

还没有评论,来说两句吧...

相关阅读