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

What is the difference between `squash` and `fixup` in a rebase todo?

IntermediateConceptMerge, rebase and cherry-pick
Answer

Both fold a commit into the previous one. squash combines the messages and opens the editor so you can edit the result; fixup discards the folded commit's message. fixup -C instead keeps only the later message.

All Git & GitHub questions Roadmap: Git & GitHub

More on Merge, rebase and cherry-pick