Git · Middle · Question 6 of 75

What is the difference between squash and fixup in interactive rebase?

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.

Further reading

Problem with a question

Git · Middle · question 6

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz