idea提交git出现push to origin/master was rejected

Scala SenLin 4年前 (2020-04-02) 353次浏览 已收录 0个评论

push to origin/master was rejected 解决办法

push to origin/master was rejected 解决办法


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

1、idea中打开terminal(  alt  +F12  )
2、git pull
3、git pull origin master
4、git pull origin master –allow-unrelated-histories
5、重新push,发现push成功


top8488大数据 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:idea提交git出现push to origin/master was rejected
喜欢 (0)
[]
分享 (0)

您必须 登录 才能发表评论!