How to clone a new branch from tag

Sometimes we need to create a new branch and check it out from the tag of a git repository, the first step is to fetch all tags from the remote
git fetch –all –tags

once we have all the tags,the following command is used to create a new brach and switch to it

git checkout tags/<tag name> -b <branch name>

git checkout tags/1.7.14 -b branch1.7.14