为什么我应该使用 git 而不是 svn? [英] Why should I use git instead of svn?

查看:31
本文介绍了为什么我应该使用 git 而不是 svn?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前使用 Visual Studio + C#,之前一直在使用 svn,但现在没有,所以我想再次将我的代码放在源代码控制中.

I use to work with Visual Studio + C#, and have been using svn before, but not currently, so I want to put my code again on source's control.

最近我听说了 git,我一直在阅读 git wiki 和 thisthis,我已经读到没有像 TortoiseSvn 这样的 git gui 客户端,或者至少,我还没找到.

Recently I heard about git, and I have been reading the git wiki and this and this, and I have read that there are no gui clients for git like TortoiseSvn, or at least, I haven't found'em.

我的问题是:

  • git 相对于 svn 的优势是什么
  • 在哪里可以找到易于用于 git 的前端.
  • 是否有任何用于 git 与 Visual Studio 一起工作的插件(类似于 ANKH)?
  • 我还能在哪里找到开始使用 git 的资源?

推荐答案

这里是我个人使用 git vs. svn 的经验:

Here my personal experiences with git vs. svn:

  • Git 与 SVN: git 跟踪源树的状态、历史和完整性.SVN 只跟踪状态.
  • Git vs. SVN: git tracks state, history and integrity of the source tree. SVN only tracks state.

特别是在合并时,git 对存储历史的广泛使用(跨重命名和合并)可以方便地做出更明智的决策,从而减少冲突.

Especially when merging, git's extensive use of stored history (across renames and merges) comes handy to make much better informed decisions leading to less conflicts.

通过存储库拥有完整的、可加密验证的完整性链有助于建立对底层系统的信任,或检测它们何时发生故障.不利的一面是,创建干净"的补丁可能很复杂.拥有适当的工作流程会有所帮助.

Having a complete, cryptographically verifiable integrity chain through the repository helps build trust in the underlying systems, or detect when they fail. On the downside it can be complicated to create "clean" patches. Having a proper workflow helps.

最后,git 默认在本地工作,与 SVN 相比,它具有令人难以置信的巨大提升,SVN 几乎所有操作都必须转到中央存储库.

Finally, git works locally by default, giving it a unbelievably huge boost in contrast to SVN which must go to the central repo for almost any operation.

  • 软件:参见 这个问题,有几个独立的 GUI 可用于处理 repo、历史浏览器和 shell 扩展.

  • Software: See this question, there are several standalone GUIs for working with the repo, history browsers and shell extensions.

Studio 插件:GitExtensions 有一个 Visual Studio2005 和 2008 插件.

Studio Plugin: GitExtensions has a Visual Studio 2005 and 2008 plugin.

文档:GIT 用户手册.git-scm.com 上有更多教程和书籍的链接.

Documentation: Start with the GIT User's Manual. There are more links to tutorials and books on git-scm.com.

这篇关于为什么我应该使用 git 而不是 svn?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆