How to checkout a specific tag of a repository
- Check out the repo:
git clone https://github.com/miguelgrinberg/microblog.git
- Determine the list of available tags:
git tag -l
- Checkout the tag as a new branch:
microblog$ git checkout tags/v0.3 -b tag_v0.3
Switched to a new branch 'tag_v0.3'
- The reason for checking out the tag as a new branch is that we wish to keep the tagged version separate from the latest branch.