Interview Prep/Git & GitHub/Merge, rebase and cherry-pick

How do you abort or continue a merge, rebase or cherry-pick that has conflicts?

IntermediateConceptMerge, rebase and cherry-pick
Answer

Each has --abort, --continue and (rebase, cherry-pick) --skip. The state lives in .git/rebase-merge, .git/MERGE_HEAD or .git/CHERRY_PICK_HEAD. git status always tells you which operation is in progress.

git rebase --abort
git merge --continue
git cherry-pick --skip
All Git & GitHub questions Roadmap: Git & GitHub

More on Merge, rebase and cherry-pick