免费源代码控制
到目前为止,尽管我做了很多小型家庭项目,但我从未在自己的项目中使用过任何源代码控制。我现在即将部署我的第一个个人公共网站,并认为这是建立一些东西的好时机。我正在寻找的主要内容之一是版本控制(标签等)。与 Visual Studio (2010) 的集成很好,但不是必需的。
我意识到,免费的情况下,我不会得到像 TFS 或类似的东西一样好的东西,但我正在寻找免费源代码控制的建议。
有什么想法吗?
Up until now, even though I do a lot of small home projects, I have never used any source control for my own projects. I am now almost at the point of deploying my first personal public website and figured that this would be a good time to set something up. One of the main things I am looking for is version control (labelling etc). Integration with Visual Studio (2010) is nice but not essential.
I realise that for free, I am not going to get anything as good as TFS or similar, but what am looking for suggestions for a free source control.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
我认为 git 是一个不错的选择,请参见下面的链接
将 Git 与 Visual Studio 结合使用
I think git is a good choice, see below link
Using Git with Visual Studio
假设 Windows 环境,我无法推荐 VisualSVN Server 。服务器是免费的,但 GUI 确实要花几美元。不是很多。考虑到 GUI 与 Visual Studio 的接口有多好,它的价格也很合理。
Assuming a Windows environment, I can't recommend VisualSVN Server enough. The server is free, but the GUI does cost a few bucks. Not a lot. Considering how well the GUI interfaces with Visual Studio, it's well work the price.
您可以轻松使用 Windows 版 Mercurial 并获取 Visual Studio 插件。
Joel Spolsky 编写了Mercurial 使用指南。
You can easily use Mercurial for Windows and get a plugin for Visual Studio.
Joel Spolsky wrote a guide to using Mercurial.
我建议使用 VisualSVN 作为服务器(我将它用于我的所有项目)和 RocketSVN 用于 Visual Studio 客户端。
VisualSVN Server 是控制 Subversion 服务器的绝佳(且简单)方法,而 RocketSVN 则与 Visual Studio 2010 无缝集成。
当然,两者都是免费的。
I would suggest VisualSVN for the server (I use it for all my projects) and RocketSVN for the Visual Studio client.
VisualSVN Server is a great (and easy) way to control your Subversion server, while RocketSVN integrates with Visual Studio 2010 in a seamless way.
Both, of course, are free.
为什么不尝试一下Plastic SCM?它对于最多 15 个用户的团队是免费的,并且实际上比 TFS 更强大的版本控制功能:
Why don't you give a try to Plastic SCM?? It is free for teams up to 15 users and it is actually stronger than TFS for version control:
您可以查看 Mercurial。基本上你想运行 TortoiseHg + VisualHG 用于 VS 集成的插件。
You could look at Mercurial. Basically you'd want to run TortoiseHg + VisualHG add-in for VS integration.
您会遇到的两个最流行的免费版本控制选项是 Subversion 和 Git。
如果您有一个始终向其提交更改的中央存储库,则 Subversion 是不错的选择;如果您需要分散代码库,则 Git 是不错的选择。
The two most popular options you will come across for free version control are Subversion and Git.
Subversion is good if you will have a central repository that you always commit changes to and Git is good if you need your codebase to be de-centralized.
如果只有您,那么 Perforce 是一个选择。
它对 2 位用户免费,并且与 Visual Studio 集成良好。
对我来说最大的优点是更改列表管理功能,因此您可以在必要时同时进行两个或多个编辑,而不会混淆文件。
最大的缺点是你只能容纳 2 个用户,所以如果你有更多的人加入,你就必须切换。
If there's just you then Perforce is an option.
It's free for 2 users and integrates well with Visual Studio.
The big plus point for me is the changelist management features so you can work on two or more edits at the same time if necessary without getting your files mixed up.
The big drawback is that you are limited to 2 users so if you get more people on board you'll have to switch.
我使用 AnkhSVN - Visual Studio 的 Subversion 支持(插件) 。但是,这还不够。我还需要 SVN 客户端:我使用 SmartSVN Foundation ..它是最专业的客户..据我发现)。 两者都是 100% 免费!还有 SmartSVN Professional - 一个全功能版本,需要付费,但免费版本对我来说功能足够了。
为什么VS插件不够用?
因为您无法在 Visual Studio 中执行某些操作。例如:将文件从一个文件夹移动到另一个文件夹。另一个例子:您想要将未添加到 Visual Studio 项目(或一部分)的文件(比如说一些“.h”文件)添加到 SVN 存储库。 ETC。
I use AnkhSVN - a Subversion Support for Visual Studio (a plugin). But, it is not enough. I need also SVN Client: I use SmartSVN Foundation ..It is the most professional client ..from what I found). Both are 100% FREE! There is also SmartSVN Professional - a full featured version that costs, but the free version is featured enough for me.
Why the VS plugin is not enough?
Because you cannot do some things from within Visual Studio. For example: moving a file from one folder to another. Another example: You want to add files (let say some '.h' files) to SVN repository that are not added to (or part of) the Visual Studio project. etc.
Git 是一个不错的选择;颠覆也是如此。 CollabNet 版本作为 Windows 服务在我的家用计算机上运行得非常好。
Git is a good choice; so is Subversion. The CollabNet version runs very nicely on my home machine as a Windows service.
由于提到了 Subversion,我可以推荐 SmartSVN 客户端,很棒的 SVN 客户端,提供免费版本。
Since Subversion is mentioned I can recommend the SmartSVN client, great SVN client, free version available.