Git · Middle · Question 5 of 75
What can git rebase -i HEAD~4 do?
- ✓Correct answer: Reorder, squash, reword or drop the last 4 commits
- 2Show the last 4 commits without changing anything
- 3Move the last 4 commits to a new branch on the remote
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.