Git · Middle · Question 6 of 75
What is the difference between squash and fixup in interactive rebase?
- 1
squashdeletes a commit;fixupkeeps it unchanged - 2
squashmerges branches;fixuprepairs broken commits - ✓Correct answer: Both combine commits;
fixupdiscards the folded commit's message
Explanation
squash lets you edit a combined message, fixup keeps only the earlier commit's message. git commit --fixup <hash> plus rebase -i --autosquash places them automatically.