@magine
2015-03-07T09:02:44.000000Z
字数 1094
阅读 840
Git
TDD
work-flow
演讲
Git 是 Linux 之父林纳斯发明的版本控制程序。
## 增
# 克隆一个远端仓库
git clone [options] <repo> [<dir>]
# 添加一个远端仓库地址
git remote add [<options>] <name> <url>
# 切换分支(新建分支也用这个)
git checkout [options] <name>
## 删
# 删除缓存区改动
git rm [options] [path]
# 重置当前的版本(commit),会删除在该版本之后的修改
git reset [options] [<commit>]
## 改
# 提交改动到本地缓存
git add [options] <path>
# 提交改动到版本(commit)
git commit [options] <path>
# 更新远端仓库的本地缓存
git fetch <repo name>
# 有记录合并分支
git merge [options] [<others>]
# 无记录合并分支
git rebase [options] [<others>]
# 推送更新到远端仓库
git push [options] <remote> <branch>
## 查
# 查看改动
git diff [options] [<commit or others>]
# 查看各文件的状态
git status [options]
# 查找仓库
git --no-pager grep --color -n --heading --break <keys>
不断地使用现代化的技术 优化 互联网软件的 开发与运作流程 。