# your initial message
git commit -m "Your old message here"
# push the local changes to remote
git push example-branch
# some typo happened in recently pushed commit message
git commit --amend -m "Your edited message here"
# push force again the last edited commit
git push --force example-branch
Last active
September 7, 2017 17:13
-
-
Save palashmon/cf7a3a01fd9559e70b70b6ffaaf2985e to your computer and use it in GitHub Desktop.
Editting the message of the most recently pushed commit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment