一、fatal: refusing to merge unrelated histories
今天在pull 的时候出现:
$ git pull origin master
Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known hosts.
From github.com:Lovening/highConcurrencySer
* branch master -> FETCH_HEAD
fatal: refusing to merge unrelated histories
解决方案
在你操作命令后面加–allow-unrelated-histories
例如:
git merge master –allow-unrelated-histories
如果你是git pull或者git push报fatal: refusing to merge unrelated histories
同理:
git pull origin master –allow-unrelated-histories
通告:在github搭建免费私有仓库以及和本地仓库关联 - 吴晓宁博客