cd 项目代码所在文件夹
git init
cd 目标文件夹
git init 文件夹名称 #当前目录下创建指定名称的文件夹,并在该文件夹下生成 .git 文件夹
git clone url
git clone -b 分支名称 仓库地址