My master and development branches are tracked remotely on GitHub. How do I clone both these branches?
First, copy a remote Git repository and cd into it: $ git clone gi://example.com/myproject $, my project.\n\nCheck the local branches in your repository: $ git branch * master master: Next.\n\nBut there are other branches in your repository! See the -a flag: $ git branch: * master remotes/origin/HEAD remoteS/OrigIN/master remote/professor/stable/v1.0-strate Remotes / Origine/experimental!\n\nFor a quick look at an upstream branch, see: $ git checkout origin/experimental: .\n\nFor example, if you want to work on that branch, make a local tracking branch automatically: $ git checkout experimental.\n\nBranch experimental set up to track remote branch experimental from origin. Changed branch \’experimental\’.\n\nFor example, here, \”new branch\” simply means that the branch is taken from the index and made locally for you. The previous line indicates you are following the remote branch, usually the origin/branch_name branch. Your local branches should now be: $ git branch * experimental master master.\n\nWith git remote, you can follow more than one remote repository: $ GitHub remote add win32 /example.com/joe/myproject-win32-$$ – a * master remotes/origin/hEAD remote/head rudder/master remote &/winwin/controller/prospect/driver/wil-stable/or-control/final-winning/new-widgets.\n\nrun gitk to see what\’s going on: $ gik –all & .