fatal: refusing to merge unrelated histories in Git: Why It Happens and How to Fix It
Git refuses to merge two branches that share no common commit. Why ‘fatal: refusing to merge unrelated histories’ appears (usually after creating a GitHub repo with a README), how to fix it with --allow-unrelated-histories, resolve the add/add conflict, or avoid it. Tested.