1、克隆git仓库
git clone https://127.0.0.1/username/project.git
cd project
2、查看所有分支
git branch -a
3、获取远程分支
git checkout -b branch-0.1 remotes/origin/branch-0.1
git branch -a
4、创建分支
git branch branch-0.2
git checkout branch-0.2 #切换到分支
5、添加修改
git add file
git commit -m "add file"
6、推送到git仓库
git push origin branch-0.2
7、获取git仓库新信息
git pull