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>
check with git checkout tags/<tag_name> <file_name>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using below command you can get all the commit details related to a specific Tag
git show <version no/tag_name>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.