git clone - Download a specific tag with Git -
I am trying to figure out how I can download a particular tag of a GIT repository - this There is a version behind the current version.
I noticed that there was a tag for the previous version on the Git Web page, which contained the object name of some long hex number.
But according to the site the version is named " tagged 1.1.5 ".
I tried a command like this (by changing the name):
git clone http://git.abc.net/git/abc.git my_abc And I found something - a directory, a bunch subdirectories etc.
If this is a complete repository, how do I get the version I am looking for? If not, how do I download that particular version?
$ git clone will give you the complete repository.
After the clone, you can list the tag with $ git tag -l and then check a specific tag:
< Code> $ git checkout tag / & lt; Tag_name & gt;
Better, checkout and make a branch (otherwise you will be on a branch named after the revision number of the tag):
$ git checkout tag / LT; TAG_NAME & gt; -b & lt; Branch_name & gt;
Comments
Post a Comment