Clone Specific Branch and Rename Remote
Sometimes we may want to clone a specific branch in git and at the same time rename the remote we're cloning from to something else, like upstream
.
git clone -b <branch> -o <remote-name> git://github.com/user/repo <folder>
Written by Jesse O'Brien
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Branch
Authors
niklongstone
41.97K
muzzlefork
11.98K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#