1、获取代码
git clone ssh://git@example.git
2、查看当前使用分支(结果列表中前面标*号的表示当前使用分支)
git branch
3、查看所有分支
git branch -a
4、切换分支
git checkout 分支名
5、切换和创建分支
git checkout -b developer origin/developer
6、删除分支
git branch -d mybranch
7、强制删除分支
git branch -D mybranch
8、查看工作区代码相对于暂存区的差别
git status
9、将当前目录下修改的所有代码从工作区添加到暂存区 . 代表当前目录
git add
10、将缓存区内容添加到本地仓库
git commit -m "注释"
11、先将远程仓库master中的信息同步到本地仓库master中
git pull