To change the commit message of the most recent commit, use the command git commit --_______.

  • amend
  • edit
  • modify
  • change
The correct option is amend. The git commit --amend command allows you to modify the most recent commit message. It opens the default text editor for you to make changes. This is useful when you need to fix a typo or provide additional information to the commit message without creating a new commit.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *