git clone --depth 1 --branch <tag_name> <repo_url>
Use the command: git clone --help to see whether your git supports the command git clone --branch tag_name If not, just do the following: git clone repo_url cd repo git checkout tag_name