In order to pull a remote branch to your local repository:
git pull
git checkout -b <new_branch> origin/<new_branch>
Do not:
git checkout -b < new_branch >
git pull origin < new_branch >
Source: http://www.wetware.co.nz/2009/07/pull-a-git-branch-from-remote/
No comments:
Post a Comment