谷歌代码 + SVN 或 GitHub + Git
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/807782/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Google Code + SVN or GitHub + Git
提问by rfgamaral
Let me start by telling you that I never used anything besides SVN and I'm also a Windows user.
首先让我告诉你,除了 SVN 之外,我从未使用过任何东西,而且我也是 Windows 用户。
I have a couple of simple projects that are open-source, others are on their way when I'm happy enough to release their source code. Either way, I was thinking of using Google Code and SVN to share the source code of my projects instead of providing a link to the source on my website. This has always been a pain because I had to update the binaries and the code every time I released a new version. This would also help me to have a backup of my code some where instead of just my local machine (I used to have a local Subversion server running).
我有几个简单的开源项目,当我很高兴发布他们的源代码时,其他项目也在路上。无论哪种方式,我都在考虑使用 Google Code 和 SVN 来共享我的项目的源代码,而不是在我的网站上提供指向源代码的链接。这一直很痛苦,因为每次发布新版本时我都必须更新二进制文件和代码。这也将帮助我在某个地方备份我的代码,而不仅仅是我的本地机器(我曾经有一个本地 Subversion 服务器在运行)。
What I want from a service like this is very simple... I just want a place to store my source code that people can download if they want, that allows me to control revisions and provide a simple and easy issue/bug system so people can submit bugs and stuff like that.I guess both of them have this.
我想要从这样的服务中得到的东西非常简单......我只是想要一个地方来存储我的源代码,人们可以根据需要下载它,这样我就可以控制修订并提供一个简单易用的问题/错误系统,以便人们可以提交错误之类的东西。我猜他们两个都有这个。
But I don't want to host any binaries in their websites. I want this to be hosted on my website so I can control download statistics with my own scripts. I also don't have a need for wiki pages as I prefer to have all the documentation on my own website. Do any of these services provide a way to "disable" features like wiki and downloads and not show them at all for my project(s)?
但我不想在他们的网站上托管任何二进制文件。我希望将其托管在我的网站上,以便我可以使用自己的脚本控制下载统计信息。我也不需要维基页面,因为我更喜欢在我自己的网站上拥有所有文档。这些服务中的任何一个是否提供了一种方法来“禁用”诸如 wiki 和下载之类的功能,并且根本不为我的项目显示它们?
Now, I'm sure there are lots of pros and cons about using Google Code with SVN and GitHub with Git (of course) but here's what's important for me on each one, and why I like them:
现在,我确信将 Google Code 与 SVN 和 GitHub 与 Git 一起使用有很多优点和缺点(当然),但以下是对我来说最重要的一点,以及我喜欢它们的原因:
Google Code:
谷歌代码:
- As with any Google page, the complexity is almost non-existent
- Everyone (or almost everyone) has a Google account, whcih is nice if people want to report problems using the issues system
- 与任何 Google 页面一样,复杂性几乎不存在
- 每个人(或几乎每个人)都有一个 Google 帐户,如果人们想使用问题系统报告问题,这很好
GitHub:
GitHub:
- May (or may not) be a little more complex (not a problem for me though) than Google's pages but...
- ...has a much prettier interface than Google's service
- It needs people to be registered on GitHub to post about issues
- I like the fact that with Git, you have your own revisions locally (can I use TortoiseGit for this or?)
- 可能(也可能不会)比 Google 的页面更复杂一些(虽然对我来说不是问题)但是......
- ...比谷歌的服务有更漂亮的界面
- 人们需要在 GitHub 上注册才能发布问题
- 我喜欢这样一个事实,即使用 Git,您可以在本地拥有自己的修订版本(我可以为此使用 TortoiseGit 还是?)
Basically that's it. Not much, I know...
基本上就是这样。不多,我知道...
What other common pros and cons can you tell me about each site/software? Keep in mind that my projects are simple, I'm probably the only one who will ever develop these projects on these repositories (or maybe not, but for now I am).
关于每个站点/软件,您还能告诉我哪些其他常见的优缺点?请记住,我的项目很简单,我可能是唯一会在这些存储库上开发这些项目的人(或者可能不会,但现在我是)。
采纳答案by jsight
I haven't had particularly positive experiences with TortoiseGit myself. I really like the git model, but everything about it feels weird to me when I'm trying to use it on Windows. I often end up just using the cygwin version, but even that is far from perfect.
我自己对 TortoiseGit 没有特别积极的体验。我真的很喜欢 git 模型,但是当我尝试在 Windows 上使用它时,我觉得它的一切都很奇怪。我经常最终只使用 cygwin 版本,但即使如此也远非完美。
Honestly, for small projects that you want to opensource, I'd probably just host on google code and deal with SVN for the moment. It might be different if you were already a git expert, but I'm not sure that the learning curve is worth it for a small, windows-based project (esp. considering the # of windows developers who are likely to be turned off by it).
老实说,对于你想要开源的小项目,我可能只是暂时托管在谷歌代码上并处理 SVN。如果您已经是 git 专家,情况可能会有所不同,但我不确定对于一个基于 Windows 的小型项目来说,学习曲线是否值得(特别是考虑到可能被关闭的 Windows 开发人员的数量)它)。
回答by Steve Rowe
Google Code is supporting Mercurial now. Mercurial should give you most of the benefits of Git, but you get the maturity of Google Code. You also have the option to go with subversion there as well should you want to.
Google Code 现在支持 Mercurial。Mercurial 应该为您提供 Git 的大部分好处,但您会获得 Google Code 的成熟度。如果您愿意,您还可以选择在那里使用 subversion。
回答by anatoly techtonik
Google Code Project Hosting now supports Git.
Google Code Project Hosting现在支持 Git。
回答by Xiong Chiamiov
There are 2 main advantages to GitHub:
GitHub 有两个主要优点:
- It uses git (duh!)
- It's a very "social" environment.
- 它使用 git(废话!)
- 这是一个非常“社会”的环境。
GitHub makes it veryeasy to make contributions to other people's code, and easy for them to integrate it back in. There are also lots and lots of cool post-commit hooks that they have built-in; for instance, when I commit to one of my repositories, an email is sent to my Google Groups announce list and a bot pops into the irc channel, gives a summary of the changes, and pops back out again. I know of at least oneCI service that triggers on GitHub commits (or rather, pushes).
GitHub 使得向其他人的代码做出贡献变得非常容易,并且他们也很容易将其重新集成。他们还内置了很多很酷的提交后挂钩;例如,当我提交到我的一个存储库时,一封电子邮件会发送到我的 Google Groups 公告列表,一个机器人会弹出到 irc 频道,提供更改摘要,然后再次弹出。我知道至少有一个CI 服务在 GitHub 提交(或者更确切地说,推送)时触发。
If you're planning on this being a fairly small, solo project, then you probably won't find most of GitHub's features to be that useful.
如果您打算将其作为一个相当小的独立项目,那么您可能不会发现 GitHub 的大部分功能都那么有用。
回答by jsight
These are answers for Google Code (which I use and am very happy with):
这些是 Google Code 的答案(我使用并且非常满意):
But I don't want to host any binaries in their websites
但我不想在他们的网站上托管任何二进制文件
So don't - nothing in the Google terms of service requires you to do so.
所以不要 - Google 服务条款中没有任何内容要求您这样做。
I also don't have the need for wiki pages
我也不需要维基页面
The wiki pages, like almost all the tabs on a GC site, can be disabled and hidden.
wiki 页面,就像 GC 站点上的几乎所有选项卡一样,可以禁用和隐藏。
Why not create a Google Code page for your project (it takes about 2 minutes and it's free) and play with the admin options to see if it does what you want?
为什么不为您的项目创建一个 Google 代码页面(大约需要 2 分钟,并且是免费的)并使用管理选项来查看它是否符合您的要求?
回答by Andrew Babkin
Github now supports Subversion http://slashdot.org/submission/1232328/
Github 现在支持 Subversion http://slashdot.org/submission/1232328/
回答by Cody Caughlan
It sounds like Google Code is a better fit for your needs, namely its use of SVN (Mercurial now, but SVN since thats what you are most comfortable with). As for its other features that you dont care so much about, then yes you can disable them by disabling their tab in the UI.
听起来 Google Code 更适合您的需求,即它使用 SVN(现在是 Mercurial,但 SVN 因为那是您最喜欢的)。至于您不太关心的其他功能,那么是的,您可以通过在 UI 中禁用它们的选项卡来禁用它们。
I am a fan of Google Code - its simple and straight-forward.
我是 Google Code 的粉丝 - 它简单明了。
回答by jdc0589
SVN was the first type of source control I ever used. It worked for a while, but I never looked back after switching to GIT. It sounds like the biggest issue stopping you from going to git is a good tool to use. I used tortoiseSVN for a while, and tried tortoiseGit when I made the transition but was less than satisfied.
SVN 是我使用过的第一种源代码控制。它工作了一段时间,但在切换到 GIT 后我再也没有回头。听起来阻止您使用 git 的最大问题是一个很好的工具。我使用了一段时间的 tortoiseSVN,并在进行转换时尝试了 tortoiseGit 但不太满意。
Give Git Extensionsa try, it is by far the best gui interface to git on ANY operating system.
给Git的扩展一个尝试,它是迄今为止最好的GUI界面git的任何操作系统上。
回答by Ralph Mueller
Why not use both? You can use google code to host the project and use github as your repository. Check out robotium.orgas an example.
为什么不同时使用?您可以使用 google 代码来托管项目并使用 github 作为您的存储库。以robotium.org为例。
回答by MatejC
It is clear that git is winning and it is great tool (but it needs time). With google code git support, there is no real big difference between github/gcode . If you like to have private repository and public on same provider than github is way too go. Also I am using Eclipse and egit plugin (3.7.x) is part of eclipse project, but in most cases needs to be installed as plugin.
很明显 git 正在获胜并且它是一个很棒的工具(但它需要时间)。有了 google code git 支持,github/gcode 之间没有真正的大区别。如果您喜欢在同一个提供商上拥有私有存储库和公共存储库,那么 github 就太棒了。此外,我正在使用 Eclipse 和 egit 插件(3.7.x)是 eclipse 项目的一部分,但在大多数情况下需要作为插件安装。