Http://zhidao.baidu.com/link?url=cuqJsL9skJJn5c556zXfP1dgCAOUK37CDXkNIw_ Ss0ykmvoroti0hp7-pbkjgs6lv4xrgleg2fjg5aangaslxgmt00c7rsc5gpprykr_d_g
git clone can clone only the master branch of the remote library and cannot clone all branches, the workaround is as follows:
1. Find a clean directory, assuming it is git_work
2. CD Git_work
3. Git clone http://myrepo.xxx.com/project/.git, so you get a project subdirectory in the Git_work directory
4. CD Project
5. Git branch-a, list all branch names as follows:
Remotes/origin/dev
Remotes/origin/release
6. Git checkout-b dev Origin/dev function is to checkout the remote Dev branch, name the dev branch locally and switch to the local dev branch
7. Git checkout-b release origin/release, action see previous explanation
8. Git checkout dev, switch back to Dev branch and start development.
git Switch Remote branch