1. The first type, the command is as follows:
git clone -b dev
2. The second type can be completed in the following steps, and the steps are as follows:
1. Initialization:
git init
2. Add remote git code repository address
git remote add origin 版本库地址
3. Pull the remote branch code to the local:
git fetch origin dev
Description: dev is the name of the remote branch
4. Create a local branch, switch to this branch, and associate with the remote warehouse branch
git checkout -b localdev origin/dev
Description: localdev is the name of the local branch, dev is the name of the remote warehouse branch
5. Pull the remote branch to the local
git pull origin dev