提交代码出现 Push to origin/master was rejected 在项目目录下依次输入 git pull git pull origin master git pull origin master --allow-unrelated-histories