Quick Tip on Git Tags

Creating the Tags in Git repo

  • 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

Scheduling Repeating Local Notifications using Alarm Manager

Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .