Git – checkout remote branch

To checkout remote branch and track it from its remote origin

$ git fetch
$ git branch -v -a  ##List available remote branches
$ git checkout b1
Branch b1 setup to track remote branch b1 from origin.
Switched to a new branch 'b1'
Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments