Skip to content

Instantly share code, notes, and snippets.

@blacklee
Created January 17, 2014 08:34
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 blacklee/8470154 to your computer and use it in GitHub Desktop.
Save blacklee/8470154 to your computer and use it in GitHub Desktop.
git tag command
create:
git tag tagname
push to master:
git push --tags
list tags:
git tag --list
git tag -l
switch to tag:
git checkout tagname
@msouth
Copy link

msouth commented Jun 22, 2019

I think this would benefit from adding

git tag -a tagname -m 'annotated tag with commit message'

Thank you for making this available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment