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

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

问题描述

我使用Visual Studio + C#,并且之前使用过svn,但目前还没有,所以我想再次将代码放在源代码的控制中。



最近我听说过git,我一直在阅读git wiki和这个这个,我读过,没有像TortoiseSvn那样的git客户端,或者至少我没有' t found'em。



我的问题是:


  • 有什么优点git over svn

  • 哪里可以找到易于使用的git前端。

  • 是否有任何插件(ANKH)可以与Visual Studio一起工作?

  • 我还可以在哪里找到用git开始的资源?
  • li>

解决方案

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


  • Git vs SVN: git跟踪源树的状态,历史和完整性。 SVN只跟踪状态。



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

通过存储库拥有完整的,可通过加密方式验证的完整性链有助于建立对底层系统的信任,或检测其何时失败。缺点是创建干净补丁可能很复杂。有一个合适的工作流程有助于。



最后,git在默认情况下在本地工作,与SVN形成鲜明对比,必须通过中央仓库进行几乎任何操作。




  • 软件:请参阅这个问题,有几个独立的图形用户界面用于处理repo,历史浏览器和shell扩展。


  • Studio插件 GitExtensions 有一个Visual Studio 2005和2008插件。

  • //www.kernel.org/pub/software/scm/git/docs/user-manual.htmlrel =nofollow noreferrer> GIT用户手册。有关 git-scm.com 的教程和书籍链接更多。



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.

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.

My questions are:

  • What are the advantages of git over svn
  • Where can I find front ends easy to use for git.
  • Is there any plugin (ANKH like) for git working with Visual Studio?
  • Where else can I find resources for start with git?

解决方案

Here my personal experiences with git vs. svn:

  • Git vs. SVN: git tracks state, history and integrity of the source tree. SVN only tracks state.

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.

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.

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

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

  • 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天全站免登陆