Push rejected: Push to origin/master was rejected
解决方案如下:
1.“Show in Explorer”切换到自己项目所在的目录,Git Bash Here
2.依次输入命令:
git pull
git pull origin master
#[ --allow-unrelated-histories]是告诉系统我允许合并不相关历史的内容
git pull origin master --allow-unrelated-histories
3.在idea中重新push自己的项目,搞定!!!
版权声明:本文为libra_ts原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。