Tag is a reference to the object tag can point to any object. Under normal circumstances, it is pointing to a submission (commit). Use labels can easily mark a milestone, such as release of software version identifier (kernel Linux2.6.30).
The basic operation of a tag 5.1
Create Label
Created at the end of the current branch of lightweight tag: git Tag v1.0
Commit to a specified tagging: git tag v1.0 SHA
Create a heavyweight Tags: git Tag v1.0 -a -m "Version 1.0" SHA
Look at the label
View all tags: git tag
View the contents of a label: git show v1.0
Remove label
git tag -d v1.0
Use labels mark detection status repository
git checkout v1.0
Remote Operation 5.2 label
Push a local label to the remote ( release version )
Push a tag: git push origin v1.0
Push all tags: git push origin --tags
Delete remote tag
Delete the local label: git tag -d v1.0
Delete remote Tags: git push origin: refs / tags / v1.0