Source From Here
Question
I'm trying to figure out how I can download a particular tag of a Git repository and how can I check out to a specific tag?
HowTo
Execute below command will give you the whole repository:
After the clone, you can list the tags with git tag -l and then checkout a specific tag:
Even better, checkout and create a branch (otherwise you will be on a branch named after the revision number of tag):
One simple example as below:
I'm trying to figure out how I can download a particular tag of a Git repository and how can I check out to a specific tag?
HowTo
Execute below command will give you the whole repository:
After the clone, you can list the tags with git tag -l and then checkout a specific tag:
Even better, checkout and create a branch (otherwise you will be on a branch named after the revision number of tag):
One simple example as below:
沒有留言:
張貼留言