Create and push tags in GIT
suggest changeCreate a tag:
- To create a tag on your current branch:
git tag <tagname>
This creates a lightweight tag at the current commit (the tip of the branch you are on).
- To create a tag with some commit:
git tag tag-name commit-identifier
This creates a lightweight tag pointing at commit-identifier, which does not have to be the tip of the current branch.
Push a tag:
- Push an individual tag:
git push origin tag-name
- Push all the tags at once
git push origin --tags
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents