Skip to content

Instantly share code, notes, and snippets.

@palashmon
Last active September 7, 2017 17:12
Show Gist options
  • Save palashmon/8e6369b1089e2904995e608883558021 to your computer and use it in GitHub Desktop.
Save palashmon/8e6369b1089e2904995e608883558021 to your computer and use it in GitHub Desktop.
Edit last committed git message

Usage

# your initial message
git commit -m "Your old message here"

# some typo happened in last commited message
git commit --amend -m "Your edited message here"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment