我应该使用 SVN 还是 Git? [英] Should I use SVN or Git?

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

问题描述

我正在开始一个新的分布式项目.我应该使用 SVN 还是 Git,为什么?

I am starting a new distributed project. Should I use SVN or Git, and why?

推荐答案

SVN 是一个 repo 和许多客户端.Git 是一个拥有大量客户端存储库的存储库,每个存储库都有一个用户.它是分散的,人们可以在本地跟踪自己的编辑,而无需将内容推送到外部服务器.

SVN is one repo and lots of clients. Git is a repo with lots of client repos, each with a user. It's decentralised to a point where people can track their own edits locally without having to push things to an external server.

SVN 被设计为更加中心化,其中 Git 基于每个用户拥有自己的 Git 存储库,并且这些存储库将更改推送回中央存储库.出于这个原因,Git 为个人提供了更好的本地版本控制.

SVN is designed to be more central where Git is based on each user having their own Git repo and those repos push changes back up into a central one. For that reason, Git gives individuals better local version control.

同时,您可以选择 TortoiseGitGitExtensions(如果您在 github 上托管您的中央"git 存储库,它们自己的 客户端 – 适用于 Windows 的 GitHub).

Meanwhile you have the choice between TortoiseGit, GitExtensions (and if you host your "central" git-repository on github, their own client – GitHub for Windows).

如果您正在考虑退出 SVN,您可能需要评估一下 Bazaar.它是具有这种分布式元素的下一代版本控制系统之一.它不像 git 那样依赖 POSIX,所以有原生的 Windows 构建,并且有一些强大的开源品牌支持它.

If you're looking on getting out of SVN, you might want to evaluate Bazaar for a bit. It's one of the next generation of version control systems that have this distributed element. It isn't POSIX dependant like git so there are native Windows builds and it has some powerful open source brands backing it.

但您甚至可能还不需要这些类型的功能.查看分布式 VCS 的特性、优点和缺点.如果您需要的不仅仅是 SVN 产品,请考虑一个.如果不这样做,您可能希望坚持使用 SVN(当前)卓越的桌面集成.

But you might not even need these sorts of features yet. Have a look at the features, advantages and disadvantages of the distributed VCSes. If you need more than SVN offers, consider one. If you don't, you might want to stick with SVN's (currently) superior desktop integration.

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

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