download a specific tag from a git repository

1

Perform a download to the server with the following command

git clone --branch tag_1 mi_url

but I was asked to install the tag_2 , check the tags that are running the command

git tag -l

I got the tag listing and if it was, my question is how do I git pull just download version tag_2 , and if so know any command where you can see that tag is installed in the repository

    
asked by JackNavaRow 12.07.2017 в 14:50
source

1 answer

2

to download a tag in specific you should run the following line

 git checkout tags/nombre_del_tag

in my case

 git checkout tags/tag_2

If for some reason you want to download a tag from a branch in particular, you should run the following command

git checkout tags/nombre_tag -b branch

in my case it would be like this

git checkout tags/tag_2 -b master
    
answered by 12.07.2017 / 16:10
source