1、从远程服务器下载代码到本地
git clone git路径
2、在本地新建分支
git checkout 分支名称
3、把本地代码推到远程服务器
git push origin 本地分支名:远程分支名
4、删除本地分支
git branch -d 分支名
5、把代码提交到本地分支
git add -A
git commit -m 注释信息
6、把本地代码提交到远程服务器
git push
7、修改本地分支名字
git branch -m 旧名字 新名字
8、修改远程分支名字
git branch -m 旧名字 新名字
git push --delete oringin 远程分支旧名字
git push oringin 新名字
9、git合并分支例如把 v0.9 到v1.0版本
git checkout v1.0 //切到要合并的分支
git merge v0.9