Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

clone or download based on tag / clone or download tagged files

amit June 28, 2018

command line command to  clone or download tagged files

2 answers

1 accepted

1 vote
Answer accepted
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2018

Hi @amit

Welcome to the community!

First, you need to clone the repository..

> git clone <Repo_URL>

To see the use

> git tag

You need to check out the tag

> git checkout <tag_name>

amit June 28, 2018

Thanks for reply, can we clone only particular tagged files. we dont need all files.

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2018

check with git checkout tags/<tag_name> <file_name>

amit July 17, 2018

it works , thanks

0 votes
Arjun Jadhav July 2, 2018

Hi @Yogesh Mude

can i get list of file names using tag name.?

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2018

HI @Arjun Jadhav

Welcome to the community!

Once you clone the tag, it will clone all the files with it.

can i get list of file names using tag name.?

Exactly what are you looking for?

Arjun Jadhav July 2, 2018

Hi Yogesh,

Thanks for reply.

i want to take a file name list first using tag name.once i get the file names list then i want to checkout specific file using below command.

git checkout  tags/<tag_name> <file_name>

more info:

because whenever i want checkout specific tag i am getting extra files/folder which is not related  with my tag name.

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

Ok, so once you get the list of files you can check out the specific file with commit ID.

like

git checkout <Commit_ID> <file_name>

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

Using below command you can get all the commit details related to a specific Tag

git show <version no/tag_name>

Arjun Jadhav July 3, 2018

Hi @Yogesh Mude

i want execute below scenerio

git tags/tag1 -- Enter

i will get 2 file names committed with tag1

abc.txt

xyz.txt

so now i want to checkout

git checkout  tags/tag1 abc.txt

git checkout  tags/tag1 xyz.txt

now i want command which return only file names committed with tag name.

thanks

amit July 17, 2018

git show <version no/tag_name> works 

ths

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events