过程:本地create-react-app初始化一个项目,github上创建了一个同名项目。使用了git remote add origin xx.git关联了二者,但是git pull 的时候报错:fatal: refusing to merge unrelated histories
原因:本质上这两个仓库实际上此时还是相互独立的两个仓库,所以需要合并两个仓库的历史
方法:使用—allow-unrelated-histories选项可以解决,即git pull --allow-unrelated-histories
