Source control in Visual Studio 2010?

前端 未结 5 1574
你的背包
你的背包 2021-01-30 01:33

After doing some search on SO, Google and MSDN forums I\'ve become frustrated that there is so little information for what might seem like an obvious question and possibly a dum

相关标签:
5条回答
  • 2021-01-30 02:02

    I am using Ankh SVN together with Subversion on the server side and it works fine for me. Mercurial and Git are more popular than SVN lately though and there is also Visual HG, a Mercurial plugin for visual Studio.

    Edit: Meanwhile I switched to Mercurial (Tortoise HG plus Visual HG) and never looked back. It takes a few hours of getting used to Mercurial if you are coming from Subversion, but after that it really is a breeze. Even if you do not need a distributed CVS, Mercurial still has lots of nice features that are not available in Tortoise SVN. Plus, it does seem quite a bit more stable, especially with regards to branching.

    0 讨论(0)
  • 2021-01-30 02:11

    I have use Subversion and Mecurial on projects and both made me recall fondly working with the much hated (for good reason) Visual Source Safe. Both will "work", but both show their unix-programmer roots (no pun intended) with cryptic error messages and goofy, black magic nerdisms. Source control should be simple, reliable and stay out the way. Neither SNV nor Mecurial qualify. Mecurial is easier to use if nothing goes wrong -- which is about 80% of the time.

    If you are a single developer working alone, I would use Mercurial.

    Here is a sample of why I hate these:

    pushing to Z:\Repos\SupplierAdminWebRepo searching for changes new remote heads on branch 'default' [Error: abort: push creates new remote head 9cfbad6249a9!] new remote head 9cfbad6249a9 [Error: (did you forget to merge? use push -f to force)]

    [Operation completed. Exit code: 255]

    0 讨论(0)
  • 2021-01-30 02:15

    Let me add one more option to the list of SCMs integrated with Visual Studio 2010: Plastic SCM. You can check how it looks like here.

    There's a Community Edition available.

    0 讨论(0)
  • 2021-01-30 02:19

    See: List of Source Control Systems with Visual Studio Plugins


    Visual Studio is just an IDE. You can use any source control solution that you want with it. Any open source source control solution in particular, like git, mercurial (hg) or subversion (svn). And there are commercial products like Perforce or SourceGear Vault. See here for a pretty exhaustive list and google for more information.

    You can find Visual Studio plugins that integrate it with any source control. Of open source ones subversion is especially rich in this regard. Commercial ones usually come with this integration.

    And if you are not using source control that requires you to explicitly check-out files to edit them (like VSS or TFS do), the IDE integration is not even essential. I personally prefer to use git or subversion from outside the IDE.


    And please, stay as far from Visual SourceSafe as you can.

    0 讨论(0)
  • As @Tomek suggested use Subversion.

    Check out this post, which will help you to use subversion and AnkhSVN(VS plugin) with VS2010

    Visual Studio 2010, subversion with AnkhSVN

    0 讨论(0)
提交回复
热议问题