Friday, July 7, 2017

How to Checkout a Specific Tag in Git

Here is a quick tip which shows how to checkout a specific tag in Git.
    $ git clone <repository-link>
    $ git checkout tags/<tag-name> -b <branch-name>
The first command clones the whole repository. The second one takes a specific tag and creates a branch for it. If there are any doubts regarding the tag name, a list of tags can be retrieved via the following command:
    $ git tag -l
Specifying a branch name is actually optional. It defaults to a revision number of a tag which might not be very convenient.


  1. GIT is nowadays one of the frequently used programming language and being a part time worker of british essay writers I think this post needs to get a chance of a headline.

  2. I was actually stuck and wasn’t able to find the same tag in GIT, thanks for uploading this function as we developers need that help all the time.

  3. Needed to compose one little word yet thanks for the suggestions that you are contributed here, thanks much for the valuable information please do keep on sharing...
    Best Online Software Training Institute | Core Java Training

  4. AWS Training in Bangalore - Live Online & Classroom
    myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.

    IOT Training in Bangalore - Live Online & Classroom
    IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.