visual-studio 免费源代码管理

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4327918/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:50:16  来源:igfitidea点击:

Free Source Control

visual-studiovisual-studio-2010version-control

提问by Ben

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.

直到现在,即使我做了很多小的家庭项目,我也从未在自己的项目中使用过任何源代码控制。我现在几乎要部署我的第一个个人公共网站,并认为这是建立一些东西的好时机。我正在寻找的主要内容之一是版本控制(标签等)。与 Visual Studio (2010) 的集成很好,但不是必需的。

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.

我意识到免费的,我不会得到任何像 TFS 或类似的东西,但我正在寻找免费源代码控制的建议。

Any ideas?

有任何想法吗?

采纳答案by emailhy

I think git is a good choice, see below link Using Git with Visual Studio

我认为 git 是一个不错的选择,请参阅下面的链接 Using Git with Visual Studio

回答by Metro Smurf

Assuming a Windows environment, I can't recommend VisualSVNServer 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 环境,我不能推荐VisualSVNServer。服务器是免费的,但 GUI 确实要花几美元。不是很多。考虑到 GUI 与 Visual Studio 的接口有多好,物有所值。

回答by wkl

You can easily use Mercurialfor Windows and get a plugin for Visual Studio.

您可以轻松地使用Mercurialfor Windows 并获得Visual Studio 插件

Joel Spolsky wrote a guide to using Mercurial.

Joel Spolsky 编写了使用 Mercurial指南

回答by Craig

You could look at Mercurial. Basically you'd want to run TortoiseHg+ VisualHGadd-in for VS integration.

你可以看看Mercurial。基本上,您希望运行TortoiseHg+ VisualHG插件以进行 VS 集成。

回答by Brad Butner

I would suggest VisualSVNfor the server (I use it for all my projects) and RocketSVNfor the Visual Studio client.

我建议将VisualSVN用于服务器(我将它用于我所有的项目)和RocketSVN用于 Visual Studio 客户端。

VisualSVN Server is a great (and easy) way to control your Subversion server, while RocketSVN integrates with Visual Studio 2010 in a seamless way.

VisualSVN Server 是控制 Subversion 服务器的绝佳(且简单)方式,而 RocketSVN 以无缝方式与 Visual Studio 2010 集成。

Both, of course, are free.

当然,两者都是免费的。

回答by pablo

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:

为什么不试试塑料单片机??它对最多 15 个用户的团队是免费的,它实际上比 TFS 的版本控制更强大:

  • Much stronger branching and merging
  • Distributed (like Git and mercurial)
  • Graphical (have you seen the branch explorer??)
  • 更强的分支和合并
  • 分布式(如 Git 和 mercurial)
  • 图形化(你见过分支浏览器吗??)

回答by Amit G.

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.

我使用AnkhSVN- Visual Studio 的 Subversion 支持(一个插件)。但是,这还不够。我还需要 SVN 客户端:我使用SmartSVN Foundation..这是我发现的最专业的客户端 ..)。两者都是 100% 免费的!还有SmartSVN Professional- 一个需要付费的全功能版本,但免费版本对我来说已经足够了。

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.

为什么VS插件不够用?因为您无法在 Visual Studio 中执行某些操作。例如:将文件从一个文件夹移动到另一个文件夹。另一个示例:您想要将未添加到(或部分)Visual Studio 项目的文件(比如一些“.h”文件)添加到 SVN 存储库。等等。

回答by Jeff LaFay

The two most popular options you will come across for free version control are Subversionand Git.

您将遇到的免费版本控制的两个最受欢迎的选项是SubversionGit

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.

如果您有一个始终提交更改的中央存储库,Subversion 是很好的,如果您需要去中心化代码库,Git 是很好的。

回答by ChrisF

If there's just you then Perforceis an option.

如果只有你,那么Perforce是一个选择。

It's free for 2 users and integrates well with Visual Studio.

它对 2 个用户免费,并且与 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.

最大的缺点是您仅限于 2 个用户,因此如果您有更多人加入,您将不得不切换。

回答by ROAR

Since Subversion is mentioned I can recommend the SmartSVNclient, great SVN client, free version available.

既然提到了 Subversion,我可以推荐SmartSVN客户端,很棒的 SVN 客户端,提供免费版本。