Skip to content

Instantly share code, notes, and snippets.

@abiiranathan
Created May 17, 2023 12:36
Show Gist options
  • Save abiiranathan/bfe5326978e8e9bea66cfc7b8c305011 to your computer and use it in GitHub Desktop.
Save abiiranathan/bfe5326978e8e9bea66cfc7b8c305011 to your computer and use it in GitHub Desktop.
Automatically create and push tag to remote with git.
[alias]
pushtags = "!sh -c 'if [ -z \"$1\" ]; then echo \"No tag name provided\"; exit 1; fi; tag_name=\"$1\"; git tag -a \"$tag_name\" -m \"Tag: $tag_name\" && git push origin \"$tag_name\"' \"\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment