-
Notifications
You must be signed in to change notification settings - Fork 0
Git Remote as a Branch
Cheng-Yu Hsu edited this page Sep 27, 2016
·
1 revision
To setup a remote as a branch, first add a remote, fetch it, and bind it.
git remote add <remote_name> <remote_uri>git fetch <remote_name>git checkout -b <local_branch_name> <remote_name>/<remote_branch>$ git remote add root <some_url>
$ git fetch root
From <domain_name>:<repo_name>
* [new branch] master -> root/master
$ git checkout -b root root/master
Branch root set up to track remote branch master from root.
Switched to a new branch 'root'