当远程仓库先于本地仓库创建,并且存在无关本地仓库的提交,则在git pull时候会引起
git pull
fatal: refusing to merge unrelated histories
git pull 的时候带上--allow-unrelated-histories
--allow-unrelated-histories
git pull -f origin master --allow-unrelated-histories