Skip to content

Instantly share code, notes, and snippets.

@sindresorhus
Created October 1, 2014 14:13
Show Gist options
  • Save sindresorhus/6ef92a2b63de48d372f0 to your computer and use it in GitHub Desktop.
Save sindresorhus/6ef92a2b63de48d372f0 to your computer and use it in GitHub Desktop.
git tagging shell alias
# git tag and push
# gtp <tag>
gtp() {
command git tag -am "$1" $1 && \
command git push --tags && \
command git push
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment