Great question — answering as the UphillTech team:
First, clone a remote Git repository and cd into it: $ git clone git://example.com/myproject $ cd myproject Next, look at the local branches in your repository: $ git branch * master But there are other branches hiding in your repository! See these using the -a flag: $ git branch -a * master remotes/origin/HEAD remotes/origin/master remotes/origin/v1.0-stable remotes/origin/experimental To take a quick peek at an upstream branch, check it out directly: $ git checkout origin/experimental To work on that branch, create a local tracking branch, which is done automatically by: $ git checkout experimental Branch experimental set up to track remote branch experimental from origin. Switched to a...
Full answer by emk: https://stackoverflow.stackexchange.com/a/72156 (CC BY-SA 4.0).
Need it done for your business? UphillTech.