fatal: refusing to merge unrelated histories
根本の異なるブランチをmergeしようとしているときに出るエラー
例
$ git pull --allow-unrelated-histories
$ git merge --allow-unrelated-histories target_branch
長いコミット履歴をもつブランチをマージすると、すべてのコミットが履歴として出てくる
不要な場合は--squashで消せる
$ git merge --allow-unrelated-histories --squash target_branch
Qiita.icon