Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Created September 14, 2018 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadawais/12714738592097ad6cdfa3184f47d6b0 to your computer and use it in GitHub Desktop.
Save ahmadawais/12714738592097ad6cdfa3184f47d6b0 to your computer and use it in GitHub Desktop.
# Ammend the last commit message.
# Push the changes to remote by force.
# USAGE: gamend "Your New Commit Msg"
function gamend() {
git commit --amend -m "$@"
git push --force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment