IDEA工具上传项目报:Push rejected: Push to origin/master was rejected

原文:https://blog.csdn.net/a137151062/article/details/78820806

解决方案如下:

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

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

git pull

git pull origin master

git pull origin master --allow-unrelated-histories

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

猜你喜欢

转载自www.cnblogs.com/kxm87/p/9193018.html
今日推荐