Fix merge conflicts, rebases, lost commits, branch issues, history rewriting, and real-world Git workflows
Your rebase is stuck with conflicts, and new commits accidentally built on the wrong base branch. Fix the situation without losing work.
A developer accidentally ran `git reset --hard HEAD~3` and lost commits. Use reflog to restore them.
Two developers modified the same function, causing a multi-line conflict. Fix the conflict properly and complete the merge.
Developer committed work while in detached HEAD, then switched branches and lost work. Recover commits and attach them to a branch.
Developer force-pushed incorrect history. Use reflog to restore correct branch state.