git checkout specified tag version

List tags

 git tag# pattern match git tag -l "v1.8.5*"

Creating an annotated tag

 git tag -a v1.4 -m "my version 1.4"

Creating lightweight tags

To create a lightweight tag, don’t supply the -a, -s, or -m option:

 git tag v1.4-lw

Sharing Tags

 git push origin v1.5

Checking out Tags

syntax: git checkout -b [branchname] [tagname]

 git checkout -b new-branch-name v2.0.0

or using this syntax: git checkout [tagname] -b [branchname]

 git checkout v2.0.0 -b new-branch-name

References

  1. 2.6 Git Basics - Tagging
  2. Download a specific tag with Git
  3. git 检出标签