Rename commit message after clicking on github

I have two commits that I just clicked on github

The second commit message after the first commit message is actually a bit confused.

Is there a way to change the second commit message after clicking on github?

I know that a fix will only work if it is not migrated to github. No one forked my current dev branch, so it's safe to assume that no one will get hurt if I do this.

+4
source share
1 answer

Try using the interactive Git reload feature. From git -rebase (1):

-i, --interactive
Make a list of commits to be reinstalled. Let the user edit this list before rebooting.

If you run git rebase --interactive HEAD~2 , you can tell Git to overwrite the second commit message. Chapter 6.4 in Scott Chacon Pro Git has a lot of good information on interactive rebooting .

Since hobbs has already commented above, you still have to force click.

+4
source

Source: https://habr.com/ru/post/1433484/


All Articles