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.
More on Merge, rebase and cherry-pick
What is the difference between a fast-forward merge and a merge commit?BeginnerHow does a three-way merge work?IntermediateWhat does `git rebase` actually do?IntermediateMerge versus rebase: how do you decide?IntermediateWhat are squash merge, merge commit and rebase-and-merge on GitHub?IntermediateWhy does a squash-merged branch show as unmerged to `git branch --merged`?Intermediate