Linux For Cynics One user's experiences with Linux

9Sep/130

Pull a Git Branch from Remote

In order to check out a remote git branch, first do a git pull:

git pull 

Then

git checkout -b [new_branch] > origin/[new_branch]

So for example, if your branch name is "newfeature", you'd do:

git pull
git checkout -b newfeature origin/newfeature
Tagged as: Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.