在托管平台创建一个新项目,然后把本地项目提交推送上去时会报错,版本不一致 键入下述命令即可: git pull origin master --allow-unrelated-histories 先合并再push