Creating the Tags in Git repo
Pushing the Git Tags to repo (for sharing)
- Tagging head of the branch
git tag -a <tag name> -m "<message to identify tag>"
- Tagging a particular commit (last seven chars of a commit ID: ed26815)
git tag -a <tag name> -m "<message to identify tag>" ed26815
Pushing the Git Tags to repo (for sharing)
- By Name
git push origin <tagname>
- Pushing all tags at once
git push origin --tags
No comments:
Post a Comment