首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >idea 提交 Push rejected: Push to origin/master was rejected

idea 提交 Push rejected: Push to origin/master was rejected

作者头像
tongyao
发布于 2022-06-09 15:05:23
发布于 2022-06-09 15:05:23
1.8K0
举报
文章被收录于专栏:tongyaotongyao

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

解决方案如下:

1.切换到自己项目所在的目录,右键选择GIT BASH Here

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

代码语言:javascript
复制
git pull

git pull origin master

git pull origin master --allow-unrelated-histories

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

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021年3月10日,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档