clone remote Git repository with branches
If you git clone
a remote repository that has branches it just creates the default branch by default. You will need to force the creation of a specific branch using:
git checkout -b test origin/test
which will clone the branch and checkout
Written by Sergi Meseguer
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Branches
Authors

filipekiss
5.435K

zigotica
2.989K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#