Git · Junior · Question 27 of 75
How do you fix the message of the last commit before pushing?
- ✓Correct answer:
git commit --amend - 2
git commit --rename - 3
git log --edit
Explanation
--amend replaces the last commit with a new one, so you can also add forgotten files. Since it rewrites history, avoid it on commits that others already pulled.