Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 982
Callum Rogers Avatar asked Jul 27 '09 12:07

Callum Rogers


People also ask

Does Visual Studio have source control?

Visual Studio Code has integrated source control management (SCM) and includes Git support out-of-the-box. Many other source control providers are available through extensions on the VS Code Marketplace.

How do I enable source control in Visual Studio?

From the main menu, Tools -> Options and then navigate to. Under the Plug-in Selection, you will find it is already set to “None. From the plug-in selection drop-down, you can choose either Git or Visual Studio Team Foundation Server. Visual Studio will enable the plugin for the specific source control accordingly.

Do I need source control?

Source control is important for maintaining a single source of truth for development teams. Using it helps facilitate collaboration and accelerates release velocity. Some benefits of source control are: It allows multiple developers to work on the same codebase.

Does Visual Studio have support for version control system integration?

Visual Studio for Mac provides support for both Git and Subversion version control systems.


2 Answers

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 e.g: file:///D:/Projects/MyRepository

If you later find out that you need a server (e.g. 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):

  • the subversion command line binaries
  • TortoiseSVN (free, integrated into windows explorer)
  • VSFileExplorer (free, gives you an explorer view inside Visual Studio and a allows you to access TortoiseSVN from there)
  • AnkhSVN (free, integrated into Visual Studio)
  • VisualSVN (commercial, integrated into Visual Studio)
  • VisualSVN Server (free, a SVN server with a nice GUI)
like image 50
M4N Avatar answered Sep 21 '22 18:09

M4N


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).

like image 20
Sardaukar Avatar answered Sep 21 '22 18:09

Sardaukar