The git commit description is wrong, how to modify it

Question: When submitting the code, I often make mistakes and write the description wrong, so how should I modify it?

solve:

1. Execute git commit --amend to enter the interface you submitted last time

2. Press the i key to enter insert mode

3. Modify to the correct description

4. After modification, press esc to exit, then press shift+: (in English mode) , and then enter wq to complete the modification

Guess you like

Origin blog.csdn.net/qq_30893717/article/details/132585743