How to git clone a specific tag
From git-clone(1) Manual Page --branch can also take tags and detaches the HEAD at that commit in the resulting repository. I tried git clone --branch <tag_name> <repo_url> But it does not work. It returns: warning: Remote branch 2.13.0 not found in upstream origin, using HEAD instead How to use this parameter? git clone --branch <tag_name> <repo_url> This command is not supported in git 1.7.9.5. I use git 1.8.3.5 and it works Sahil kalra Use --single-branch option to only clone history leading to tip of the tag . This saves a lot of unnecessary code from being cloned. git clone <repo_url> -