Skip to content

Instantly share code, notes, and snippets.

@rberrelleza
Created March 7, 2017 23:40
Show Gist options
  • Save rberrelleza/80a6ba01261b29f20a4bd68fc2ba7d55 to your computer and use it in GitHub Desktop.
Save rberrelleza/80a6ba01261b29f20a4bd68fc2ba7d55 to your computer and use it in GitHub Desktop.
Append to last commit with the same message
git --global config.ap '!message=$(git log -1 --pretty=%B) && git commit -m "$message" --amend'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment