简体   繁体   中英

Source control for Visual Studio that doesn't require a server?

Can anyone recommend a source control solution for Visual Studio? I am going to be the only person using it, I just need something to back up my data every so often or before I undertake a big change in the software. I tried AnkhSVN, but this requires an SVN server. Is there anything that can be used locally that takes the pain out of copying solution folders manually?

With Subversion you can create local, file-system-based repositories for single-user access.

Probably the easiest way to use subversion (on windows) is to install TortoiseSVN . To create a repository, you simply create an empty folder in the location where you want the repository to be, right click that folder and select "TortoiseSVN -> Create repository here".

It is even possible (but not recommended) to create such a repository on a network share.

You can then access local repositories using a file-URL eg: file:///D:/Projects/MyRepository

If you later find out that you need a server (eg to give other users access to the repository), you can easily install svnserve on a server and move the local repository to that server.


Just for completeness: as others have noted, there are several good clients for subversion (personally I'm using mainly TortoiseSVN and AnkhSVN):

Funny nobody mentioned Git just yet. Granted, it does have a learning curve, but I've been using it successfully within Visual Studio for the past year. Both commandline and with a GUI ( GitExtensions ).

Download Git for Windows from here.

Since it is a DVCS, it doesn't need a server. You can work against your local repositories publishing them to the world when needed (check out Github ).

You can use AnkhSVN (or any other SVN client) without a server. Just create a repository on your local disk and then point your working copy to it using a URL like file:///C:/Repositories/repo.

AnkhSVN has improved a lot, but I prefer VisualSVN myself. I think its interface is a little easier to work with (especially if you're used to TortoiseSVN , which it is based on) and it will handle things like automatically setting your build folders as ignored. It is commercial, but it is inexpensive.

You can use Mercurial . It's free, fast and easy to use. I use it for my personal projects.

VisualSVN可以在没有SVN服务器的情况下运行/

SVN is the way to go. I would look at using the VisualSVN plugin rather than anksvn as it is much more modern and worth every penny.

In a similar situation I'd go download and install Git Extensions . That's all.

That gives you a world-class revision control system (the same one used for the Linux kernel), integrated into Visual Studio and Windows Explorer. No server is required. However, it is fairly easy to set one up later if you want one.

我很确定您可以使用Tortoise SVN创建一个本地存储库,并在没有服务器的情况下将它与ankhSVN一起使用。

I use Bazaar with Visual Studio. It does not have Visual Studio integration but it is easy enough to issue commands from the command prompt in a separate console.

You can use Dropbox with SVN, which is free . Sign up for one here. If you didn't like that first article, here's another one . You can pretty much google SVN Dropbox and you'll get all the information you need if these two posts are missing anything.

The advantage of using a Dropbox over local SVN is that you'll be able to get to your dropbox from anywhere, as opposed to only being able to SVN while at home.

They are a lot of cheep or free (for small teams) hosted source code control system. So if you wish to advoid running your own server rathern then not use a server at all, you should look at them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM