逐步clone的方法
- $ git clone --depth 1 https://github.com/dogescript...
- $ git remote set-branches origin 'remote_branch_name'
- $ git fetch --depth 1 origin remote_branch_name
- $ git checkout remote_branch_name
网上的答案
切换远程分支的方法
- $ git remote set-branches origin 'remote_branch_name'
- $ git fetch --depth 1 origin remote_branch_name
- $ git checkout remote_branch_name