Git clone can only clone the master branch of the remote library, but cannot clone all branches. The solution is as follows:
1. Find a clean directory, assuming it is git_work
2. cd git_work
3. git clone /project/.git, so that a project subdirectory is obtained under 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, the function is to checkout the remote dev branch, name it locally as dev branch, and switch to the local dev branch
7. git checkout -b release origin/release, the function is as shown above One-step explanation
8. git checkout dev, switch back to the dev branch, and start development.