git changes the wrong commit information that has been committed

The amend command can change the comment information of the last commit:

git commit --amend

Then, enter the vim command line:

Vim operation:

Press i, delete the wrong description at the top of #, and then re-enter the comment.
Press the Esc button to exit the edit mode, press the :wq key to save and exit.

Guess you like

Origin blog.csdn.net/LucasXu01/article/details/125476338