Interview Prep/Git & GitHub/Merge and Rebase Problems

`fatal: You have not concluded your merge (MERGE_HEAD exists).`

BeginnerTroubleshootingMerge and Rebase Problems
Answer

Likely causes → A merge stopped on conflicts and you tried to pull, commit selectively or switch branches.

Diagnose → git status shows "You have unmerged paths"; ls .git/MERGE_HEAD exists.

Fix → Resolve conflicts, git add, then git merge --continue (or git commit). To abandon: git merge --abort.

Prevent → Keep the working tree clean before merging and finish what you start.

All Git & GitHub questions Roadmap: Git & GitHub

More on Merge and Rebase Problems