Git: Checkout remote branch

作者:   發佈於: ,更新於:   #git

Using jformino repository in the example. To checkout the "gh-pages" branch:

git clone git@github.com:handlino/jformino.git
cd jformino
# must create a local 'gh-pages' branch from remote gh-pages
git checkout -b gh-pages origin/gh-pages