Skip to content

Instantly share code, notes, and snippets.

@armelo24
armelo24 / Git checkout remote branch
Created February 20, 2019 09:26 — forked from markSci5/Git checkout remote branch
Git checkout remote branch
//To fetch a branch, you simply need to:
git fetch origin
//This will fetch all of the remote branches for you. With the remote branches
//in hand, you now need to check out the branch you are interested in, giving
//you a local working copy:
git checkout -b test origin/test