Git · Middle · Question 5 of 75

What can git rebase -i HEAD~4 do?

Explanation

Interactive rebase opens a todo list with pick, reword, squash, fixup, edit and drop. It's the standard way to tidy a branch before opening a pull request.

Further reading

Problem with a question

Git · Middle · question 5

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