push to origin/master was rejected 解决办法

push to origin/master was rejected 解决办法


使用IDE git提交代码的时候,出现push to origin/master was rejected(如下图)解决办法如下:

1、打开terminal
2、git pull
3、git pull origin master
4、git pull origin master --allow-unrelated-histories
5、重新push,发现push成功

posted @ 2019-03-25 09:51  晚安,Jake  阅读(5563)  评论(0编辑  收藏  举报