这是我经常用的几个命令至于其他的在详解:(具体详情看大神的http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html)
git clone,第一次拉代码,
git pull,更新代码,
git branch 列出所有本地分支
git branch -r 列出所有远程分支
git checkout [branch-name] 切换到指定分支,并更新工作区
git merge [branch] 合并指定分支到当前分支
git status,查看代码状态,git add,添加代码,
git commit -m ''提交,
git push,传上去