1 / 34

版本控制系统在论文写作 中 的 应用

版本控制系统在论文写作 中 的 应用. 王勇 丁怀对 包鹏飞 陈钰水 陈英 2012-12-02. “这个章节八月份时候写的还不错,你现在越写越差了,打回去重写吧”. Git 分布式版本控制系统. 凡事总有踪迹 任何的修改都会留下踪迹,不会出现找不回来的情况 多人协同工作 非线性 开发 不同的人或者同一个人在不同地方进行不同的修改,最后又可以拼接起来 完全分散式 支持超 大的资料 量. Git. ?. 谁发明了 Git Linus Benedict Torvalds or Mr. Linux 谁在 用 Git. ?. Git 安装.

amma
Télécharger la présentation

版本控制系统在论文写作 中 的 应用

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 版本控制系统在论文写作中的应用 王勇丁怀对 包鹏飞 陈钰水 陈英 2012-12-02

  2. “这个章节八月份时候写的还不错,你现在越写越差了,打回去重写吧”“这个章节八月份时候写的还不错,你现在越写越差了,打回去重写吧”

  3. Git分布式版本控制系统 • 凡事总有踪迹 任何的修改都会留下踪迹,不会出现找不回来的情况 • 多人协同工作 • 非线性开发 不同的人或者同一个人在不同地方进行不同的修改,最后又可以拼接起来 • 完全分散式 • 支持超大的资料量

  4. Git ? • 谁发明了 Git • Linus Benedict Torvalds or Mr. Linux • 谁在用 Git ?

  5. Git安装 • Windows: • Git: http://msysgit.github.com • TortoiseGit: https://code.google.com/p/tortoisegit • Linux: • GitG: GTK version GUI for Git • QGit4: QT version GUI for Git • Mac OS: • Git: http://code.google.com/p/git-osx-installer • GitX: http://www.gitx.org 为简化操作,我们暂时不涉及 Git的网络操作以及 命令行 Cli操作

  6. 资料库初始化 (Init) • “Repository”资料库:任何的修订都会被存放在资料库中。 • 资料库具体位置为资料库文件夹的 .git文件夹中

  7. 提交更新(Commit) • 提交更新 (Commit) 形象来说,提交更新就是将现在对文件的更改放进资料库中,由资料库对当前的状态扫描备份。

  8. 比较变化 (Diff) • 查看更新历史(Log) 追踪文档及所有文件在历次提交更新的历史。 • 比较变化(Diff) 比较文档和文件在更新中的变化,以及当前状态和历史记录中文件的区别。

  9. 撤销变动 (Revert & Reset) • 在版本控制系统中,任何时候,你都有可能需要撤消刚才所做的某些操作。再也不用担心修改文档过度不能回复到之前状态的情况。

  10. 重置文件 撤消

  11. 重置分支

  12. Git的分支模型

  13. 建立分支

  14. 切换分支 (Checkout)

  15. 分支的合并 (Merge)

  16. 解决合并中的冲突 (Conflict) • 当同一个文件在两个不同分支里面都进行了修改,合并分支的时候同一个文件两个不同版本机会发生冲突。 已修改的文件 冲突文件 新增文件

  17. 分散协作 • 当你喜欢在台式机保存一份文件,笔记本保存一份文件,U盘,邮箱,网盘各一份文件时候,保持所有文件都在同一个版本是非常困难的工作。 • 分散协作可以让你在不同地方修改不同版本的文件,最终修改又能合并到一起。

  18. 克隆(Pull)

  19. 同步 (Pull & Push)

  20. 其他版本控制的方法 • 重命名 • 网盘 Google Drive, Dropbox等 • Microsoft SharePoint • 版本控制系统 CVS, SVN, Mercurial 等

  21. Further Reading • Writing the PhD thesis: the tools Part I http://copiancestral.wordpress.com/2012/04/27/writing-the-phd-thesis-the-tools-part-i/#more-372 • A Visual Guide to Version Control http://betterexplained.com/articles/a-visual-guide-to-version-control/ • Pro Git http://git-scm.com/book • A successful Gitbranching model http://nvie.com/posts/a-successful-git-branching-model/

  22. 谢谢

More Related