git push 出现 you are not allowed to upload merges 错误提示
解决方法:敲git rebase 然后按提示执行就行了,如果rebase 发生冲突的话,则修改,修改完后git add -u filename,然后git rebase –continue ,直到没有冲突为止。不需要commit 。最后再上code(参考链接 参考链接2)
出现问题的原因:在本地分支ahead 远程分支commit 不止一个的 时候,即是出现了分叉,在这种情况下使用了git pull
转载
2017-01-11 10:40:22 ·
6219 阅读 ·
0 评论