18Jul/110
git tag
Tag commit:
git tag <tagname> -m <msg> #lightweight git tag -a <tagname> -m <msg> #annotated, preferred
Push tags (not done by default):
git push --tags <remote> <branch> #dangerous, avoid pushing all tags! git push <remote> <tagname>
Fetch tags
git fetch --tags <remote> <branch> #or git remote update <remote>
Look up which branch has the tag
git branch --all --contains <tagname>
delete tags remote and local:
git push --delete origin <tagname> git tag -d <tagname>
Leave a comment