Implementation of GIT modifying committed annotation information


Sometimes it is found that the comments are not suitable after commit and need to be modified. Some methods are found on the Internet and sorted out after testing.

Environment: Windows

Situation: no push after commit

Before modification:

Modification steps

1. Enter the command and enter the VIM interface

git commit --amend

2. Enter edit mode

Press I to enter edit mode (same as VIM).

3. Modify the comment information and exit edit mode

Press ESC to exit edit mode (same as VIM).

4. Complete the modification and view the results

Enter * *: WQ * * (same as VIM) in non edit mode to save and exit.

This article about git modification has committed the note information implementation of the article introduced here, more relevant git commit modify comments content please search the previous articles of developeppaer or continue to browse the related articles below, I hope you can support developeppaer more in the future!