mac IDEA中,推送本地项目到git时出现:Push to xxxx/master was rejected

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_41201083/article/details/84172095

在mac IDEA中,推送本地项目到git时出现:
Push rejected: Push to xxxx/master was rejected
在这里插入图片描述
1输入:git pull xxxx master –allow-unrelated-histories执行;
2输入:git push -u xxxx master -f执行;
执行完毕后重新push;在这里插入图片描述
成功!!

猜你喜欢

转载自blog.csdn.net/weixin_41201083/article/details/84172095