The git _______ command is used to change a commit message that hasn't been pushed yet.

  • commit --amend
  • commit --modify
  • commit --edit
  • commit --change
The correct option is commit --amend. This command allows you to modify the last commit's message. It's useful when you need to make small changes or corrections to the commit message before pushing it to the remote repository.
Add your answer
Loading...

Leave a comment

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