Tuesday 3 September 2013

Git: Pull a remote branch to your local repository

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