Many programmers who use Git for version control of their code make use of tags to keep track of reference points during the development phase. Tags are mainly used to reference the release versions of the code/application.
Tags, like branches, are git objects that can be checked out when needed.
A tag can be checked out using the
git checkout command. See the full command below:
$ git checkout tags/<tag> -b <branch>
For example, if you want to check out the tag v1.0-release in a branch named beta, the command that you’ll have to execute will be:
git checkout tags/v1.0-release -b beta
View all Courses