[关闭]
@magine 2015-03-07T09:02:44.000000Z 字数 1094 阅读 840

课前演讲:我在北京学到了什么?

Git TDD work-flow 演讲


1. Git工作流

Git 是 Linux 之父林纳斯发明的版本控制程序。

Git 基本工作流

Created with Raphaël 2.1.2工作目录工作目录暂存区暂存区HEADHEAD本地缓存本地缓存个人仓库(远端)个人仓库(远端)公共仓库(远端)公共仓库(远端)addcommitrebase、mergepushpull requestfetchfetch

常用 Git 指令

  1. ## 增
  2. # 克隆一个远端仓库
  3. git clone [options] <repo> [<dir>]
  4. # 添加一个远端仓库地址
  5. git remote add [<options>] <name> <url>
  6. # 切换分支(新建分支也用这个)
  7. git checkout [options] <name>
  8. ## 删
  9. # 删除缓存区改动
  10. git rm [options] [path]
  11. # 重置当前的版本(commit),会删除在该版本之后的修改
  12. git reset [options] [<commit>]
  13. ## 改
  14. # 提交改动到本地缓存
  15. git add [options] <path>
  16. # 提交改动到版本(commit)
  17. git commit [options] <path>
  18. # 更新远端仓库的本地缓存
  19. git fetch <repo name>
  20. # 有记录合并分支
  21. git merge [options] [<others>]
  22. # 无记录合并分支
  23. git rebase [options] [<others>]
  24. # 推送更新到远端仓库
  25. git push [options] <remote> <branch>
  26. ## 查
  27. # 查看改动
  28. git diff [options] [<commit or others>]
  29. # 查看各文件的状态
  30. git status [options]
  31. # 查找仓库
  32. git --no-pager grep --color -n --heading --break <keys>

Git 简明入门

2. 测试驱动开发

单元测试循环

此处输入图片的描述

功能测试与单元测试循环

此处输入图片的描述

3. 虚拟化测试平台 与 持续集成

用到的工具

工作流程

Created with Raphaël 2.1.2提出需求测试驱动开发提交到个人仓库请求合并到公共仓库自动测试公共审查是否冲突合并到公共仓库代码上线yesnoyesnoyesno

4. 总结

不断地使用现代化的技术 优化 互联网软件的 开发与运作流程

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注