本地项目add到远程仓库后
git remote add origin https://gitee.com/xxx/git-test.git[仓库地址]
通过 git pull
拉取远程仓库 显示 fatal: refusing to merge unrelated histories
- git fetch 没问题
- git merge 显示:
fatal: refusing to merge unrelated histories
解决方式:
git merge --allow-unrelated-histories