http://stackoverflow.com/questions/9537392/git-fetch-remote-branch/
git fetch <remote> <rbranch>:<lbranch>
git checkout <lbranch>
... where <rbranch>
is the remote branch or source ref and <lbranch>
is the as yet non-existent local branch or destination ref you want to track and which you probably want to name the same as the remote branch or source ref. This is explained under options in the explanation of <refspec>
.
时间: 2024-11-05 20:29:15