Git: How to change last commit message if pushed by mistake

18 July 2012 by siddharth 1 comment

git

git reset --soft HEAD^ 
git commit -m "The message you wanted to use" 
git push -f

siddharth

Follow me on Twitter

1 thought on “Git: How to change last commit message if pushed by mistake”

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe To Our Blog

Get access to proven marketing ideas, latest trends and best practices.

Next up home

Contact

Lets build cool stuff

Share your contact information & we will get in touch!

I want (Tell us more about your dream project)