how to clone the latest of the git repo release code example
Example: git clone latest release
You can do this with the --branch flag, which will also accept a tag.
$ git clone git@github.com:mygitname/theproject.git --branch 1.0.2
In most cases, you will just want to checkout the tag as described in Exprator's answer.