1、git pull origin master --allow-unrelated-histories//把远程仓库和本地同步,消除差异2、重新add和commit相应文件3、git push origin master4、此时就能够上传成功了