Note: The Listed platform will permanently shut down December 31, 2026. Your data published on Listed will still be available in your personal Standard Notes account. Learn more

Git - Solving "fatal: refusing to merge unrelated histories"

test

git pull origin <branch> --allow-unrelated-histories

or

git pull origin master --allow-unrelated-histories
git merge origin origin/master
git push origin master

More from Teo Oliver
All posts