Git clone a repository and checkout a specified tag
When you want to checkout a cloned repository to a specific tag, you first need to :
git fetch && git fetch --tags
Because tags aren't normally pulled down. Then simply checkout to your specific tag with :
git checkout v1.0.1
Written by Thierry Le Moulec
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#