top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

How to clone tagged version?

+1 vote
27 views

If I want to use GIT to keep track of source code and documents, and use the tag feature to mark revisions ... suppose now developers commit version 1.0 to the repo .. now day to day they make changes, testers test, etc .. now what if someone wanted to go in and grab the last tagged version, the full set of files corresponding to a specific tag, is this possible? How to do it?

posted Jul 15, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Once you have cloned the project, you can return to any state of it (tag or commit). To do it, you need the tag name or the commits hash.
To list all project tags, use the command git tag. To list the commits hash, use the command git log. With the tag name or commits hash, use the command git checkout tagName/hash. It will return your project to the state wanted.

answer Jul 15, 2013 by anonymous
Similar Questions
+1 vote

I can get the latest revision number by command "git describe --tags", but how can I display a list of revisions or a particular revision based on the date of my commit id?

+1 vote

I am new to git. I have followed the instructions given at https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb and successfully installed gitweb. I am using git 2.2.2 and it is installed on Linux.

After the successful installation and configuration of gitweb, I could able to see my git repositories when I hit my url like... http://ipaddress ( and I could see all the git projects/repositories listed here)

Now, I would like to my team members to clone these repositories to their local machines (all windows) using either git bash or tortoise git. However, we are unable to find or get the git clone url for these projects which are on gitweb.

How can I achieve this. Please help.

For your information, there are 5 git repositories on my Linux box (in which same git and gitweb are installed) and they are present under /root/git_projects/

+1 vote

There's a challenge that i'm currently facing after migration from WINCVS to GIT. The problem here is I need to pull/fetch a specific branch (and NOT clone the entire repository) from the repository to a particular location on the AIX server.

Earlier while using WINCVS this functionality was achievable using JCVSExport package as we could just checkout a particular branch and fetch the package on to the server location.
WINCVS Command : java JCVSExport -h cvs.xyz.com -u abcde -p xxxxxx -d /abcd/cvs/testing -c "$REPOSITORY" -m "$PACKAGE"

I am not able to achieve the same functionality using GIT. I DO NOT want to clone the entire repository on the AIX server instead I just want to fetch/pull a specific branch contents on the server. Can someone please help me out with the solution or any possible way with which I can achieve the same functionality.

0 votes

We recently upgraded from Git 2.8 to 2.9 and saw an issue when there are multiple keys added to my ssh-agent.

I have two keys.
- KeyA (my company that has access to the repository I want to clone)
- KeyB (just my personal key with access to my personal stuff)

Having both keys in loaded and listed in ssh-add -L fails to clone the repository. I tried to change the order of the key in the agent but neither KeyA, KeyB nor KeyB, KeyA will work. The only case that works if I have KeyA loaded an no other key is added to the ssh-agent.

Having multiple Keys loaded works with Git 2.8 and Git 2.7 (I didn't try older versions)
Cloning fails with 'Unauthorized Access' of our Git provider. (It's Bitbucket in this case)

I read the Changelog for 2.9 and couldn't find any reference to changed key handling. Is there anything that I can add to the git clone command to get the old behavior?

+1 vote

I wanted to avoid push if any of the files is deleted from the local git clone area. Can anyone please help me with that?

I am using Stash for repository management.


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...