Interview Prep/Git & GitHub/Merge and Rebase Problems

Rebase stops: `error: could not apply 1a2b3c4... Add retry` and later `No changes - did you forget to use 'git add'?`

IntermediateTroubleshootingMerge and Rebase Problems
Answer

Likely causes → The first message is a normal conflict. The second appears when you run git rebase --continue but the resolved files were not staged, or the resolution made the commit empty.

Diagnose →

git status
git diff --name-only --diff-filter=U
git diff --cached --stat

Fix → git add <resolved files> then git rebase --continue. If the commit became empty because upstream already has the change, use git rebase --skip.

Prevent → Resolve, stage, and only then continue; check git status between each step.

All Git & GitHub questions Roadmap: Git & GitHub

More on Merge and Rebase Problems