當你git pull origin master時
$ git pull origin master
如果跳出
* branch master -> FETCH_HEAD
fatal: refusing to merge unrelated histories
就執行
$ git pull origin master --allow-unrelated-histories
就會解決了。