1.git branch newBranch //新建本地分支
2.git branch //查看本地分支
3.git checkout newBranch //本地切换到自己的分支
4.git branch -a //查看远程分支
5.git pull origin xxxxBranch //从远程仓库分支克隆代码
6.git push origin newBranch //将本地新建的分支同步到远程仓库
7.git branch --set-upstream-to=origin/newbranch newbranch . //本地分支和远程分支建立关联
8.git remote remove origin //移除本地与远程仓库的关联
9.git remote -v //查看本地与远程从仓库的关联
10.git remote add origin http://xx.xx.xx.xx:8080/xx/xx.git (远程仓库地址) // 建立本地仓库与远程仓库关联
11.git branch -d branch_name //删除本地分支
12.git fetch //获取远程所有分支
13.git config --global user.name "用户名称" //更改commit提交的用户名