IDEA使用Git出现push to origin/master was rejected错误解决方案

  • 在IDEA中配置码云的URL,如下图

技术分享图片

 

技术分享图片

 

  • 切换到自己项目所在的目录,右键选择GIT BASH Here
  • 在terminl窗口中依次输入命令:
  • git pull
  • git pull origin master
  • git pull origin master --allow-unrelated-histories
  • 在idea中重新push自己的项目,即可成功push。

 

文章来自:https://www.cnblogs.com/shyroke/p/9255630.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3