How to clone a specific Git tag
–depth 1 is optional but if you only need the state at that one revision, you probably want to skip downloading all the history up to that revision.
–depth 1 is optional but if you only need the state at that one revision, you probably want to skip downloading all the history up to that revision.
Private clone URLs take the form [email protected]:username/repo.git – perhaps you needed to use git@ rather than git://? git:// URLs are read only, and it looks like private repos do not allow this form of access.
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):
Maybe you just need to commit. I ran into this when I did: Oops! Never committed! All I had to do was: Success!
The –single-branch option is valid from version 1.7.10 and later. Please see also the other answer which many people prefer. You may also want to make sure you understand the difference. And the difference is: by invoking git clone –branch <branchname> url you’re fetching all the branches and checking out one. That may, for instance, … Read more
Maybe you just need to commit. I ran into this when I did: Oops! Never committed! All I had to do was: Success!
Maybe you just need to commit. I ran into this when I did: Oops! Never committed! All I had to do was: Success!