1、 创建并初始化一个 代码仓库 (repository)
$ git init
2、查看当前状态
$ git status
3、 将修改后的文件推入缓冲区
$ git add <filename>
$ git commit -m "some marks"
4、将远程代码库同步到本地
$ git clone <url>
5、将本地代码推送到远程仓库
$ git push origin master
6、创建分支
$ git branch <branch_name>
7、进入分支
$ git checkout <branch_name>
8、查看分支
$ git branch
9、删除分支
$ git branch -d <branch_name>
10、合并分支
$ git merge <branch_name_to_merge>