您当前的位置: 首页 > 

星夜孤帆

暂无认证

  • 1浏览

    0关注

    626博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Push to origin/master was rejected

星夜孤帆 发布时间:2019-06-11 17:59:53 ,浏览量:1

idea中,发布项目到OSChina的Git中,当时按照这样的流程添加Git,然后push,提示:push to origin/master war rejected"。

解决方案如下:

1.切换到自己项目所在的目录,右键选择GIT BASH Here,Idea中可使用Alt+F12

2.在terminl窗口中依次输入命令:

git pull

git pull origin master

git pull origin master --allow-unrelated-histories

3.在idea中重新push自己的项目,成功!!!

push to origin/master was rejected错误解决方案_弈缘人生-CSDN博客

关注
打赏
1636984416
查看更多评论
立即登录/注册

微信扫码登录

0.0380s