远程仓库新建同名git仓库git remote add origin 远程仓库地址 关联仓库git remote -v 查看远程仓库详细地址git pull origin master --allow-unrelated-histories 合并不相关的历史提交后push到远程仓库