The git rebase operation merges multiple commits to modify the message of any commit

https://www.jianshu.com/p/964de879904a  "Git" merge multiple Commits

git rebase -i commitId (the id of the last untouched one)

Enter vi mode, each item is in pick mode by default, then change the commitid you want to reword, and then you will further enter vi's name modification mode, and finally check the git log and find that they are all satisfactory after the save is successful.

The above method can also modify the submission remarks (message) of the commit in multiple records; it can be described as super easy to use.

 

Guess you like

Origin blog.csdn.net/taozi550185271/article/details/106421022