Git: Rename Pushed Commit Message

$ git commit --amend -m "Your new message here"
$ git rebase -i HEAD^ # then replace 'pick' with 'r' or 'reword' and save, editor should pop up again to edit the msg
$ git push origin your-branch-name -f

Reference: http://stackoverflow.com/a/11603609/1936697

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s