Checking out remote branch in Git

March 7, 2012   

Simply blogging this for future reference and in the hope it will be useful for someone else.

To checkout a remote branch into your local use the following commands.

git clone
git branch -r

Will show you all the remote branches pick the one you like...

For instance for me it would be origin/dave.

Run the following command.

git checkout --track origin/dave

blog comments powered by Disqus