Return to Snippet

Revision: 15107
at June 24, 2009 08:48 by wdso


Updated Code
# add reference to remote branch 'foo'
git remote add foo git://github.com/foo/project.git

# add branch based on reference (-b) and change to it (checkout)
git checkout -b foo/master

# confirm that foo/master is active
git branch

# pull branch
git pull foo master

Revision: 15106
at June 24, 2009 08:27 by wdso


Initial Code
# add branch 'foo' based on remote branch
git remote add foo git://github.com/foo/project.git

# pull from new branch
git checkout -b foo/master

# see http://b.lesseverything.com/2008/3/25/got-git-howto-git-and-github for more

Initial URL

                                

Initial Description

                                

Initial Title
Switch to a remote github branch or fork

Initial Tags
git

Initial Language
Bash