Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source control system for single developer

What's the recommended source control system for a very small team (one developer)?

Price does not matter. Customer would pay :-)
I'm working on Vista32 with VS 2008 in C++ and later in C# and with WPF. Setting up an extra (physical) server for this seems overkill to me.

Any opinions?

like image 901
kaiz.net Avatar asked Sep 05 '08 08:09

kaiz.net


People also ask

What are developers using for source control?

Version Control With Git Is One Popular Option Git source control is one of the most popular options. Some teams use open source Git. Others use enterprise Git. Some popular Git source control options include GitHub, GitLab, and Bitbucket.

What is an example of source control?

There are several different tools that implement different kinds of source control. For example, Git is a source control tool that sets lets you manage a project. Github is a web-site that repositories managed with Git are usually stored on. Mercurial is yet another source control tool.

Which version control system should I use?

Without a doubt, Git is the single most popular version control system in use. Not only does Git offer the strongest feature set for developers, but it also has the most reliable workflow and is supported by the most third-party platforms on the market.

Is Git the best source control?

#1) Git. Git is one of the best version control tools that is available in the present market. Provides strong support for non-linear development. Distributed repository model.


1 Answers

I would use Subversion (in fact I use it) [update: Jul 2014 -- I use Git -- see end of the answer]. SVN is:

  • free,
  • good enough (see disadvantages below),
  • simple,
  • works fine on Windows (and Linux too),
  • a lot of people use it so it's easy to get help,
  • can integrate with most of IDEs i.e. Visual Studio (i.e. ankhsvn or VisualSVN -- more info) or Eclipse (i.e. Subclipse -- here someone asked about that).

I would strongly recommended separate machine to source control server. At best somewhere on the cloud. Advantages:

  • You don't lost your source control repositories if your development box dies.
  • You don't have to worry about maintenance of one more box.

There are companies which host SVN repositories.

Here are links to SVN (client and server) packages for various operating systems.

Disadvantages of SVN

I am using SVN on Windows machine for about 5 years and found that SVN has a few disadvantages :).

It is slow on large repositories

SVN (or its client -- TortoiseSVN) has one big disadvantage -- it terrible slow (while updating or committing) on large (thousands of files) repositories unless you have SSD drive.

Merging can be difficult

Many people complain about how hard merging is with SVN.

I do merging for about 4 years (including about 2 years in CVS -- that was terrible, but doable) and about 2 years with SVN.

And personally I don't find it hard -- on the other hand -- any merge is easy after merging branches in CVS :).

I do merge of large repository (two repositories in fact) once a week and rarely I have conflicts which are hard to solve (most of conflicts are solved automatically with diff software which I use).

However in case of project of a few developers merging should not be problem at all if you keep a few simple rules:

  • merge changes often,
  • avoid active development in various branches simultaneously.

Added in July 2011

Many devs recommended Distributed Version Control like Git or Mercurial.

From single developer perspective there are only a few important advantages of DVCS over SVN:

  • DVCS can be faster.
  • You can commit to local repository without access to central one.
  • DVCS is hot thing and fancy to use/learn (if someone pay for your learning).

And I don't think merging is a problem in case of single developer.

Joel Spolsky wrote tutorial about Mercurial which is definitively worth to read.

So, despite of many advantages of DVCS I would stay with SVN if merging or speed is not a problem.

Or try Mercurial, which according to this and this SO questions, is better supported (in July 2011) on Windows.

Added in July 2014

For about a year I use Git (Git Bash mainly) for my pet-projects (i.e. solving Euler problems) and local branches for each Euler problem are really nice feature -- exactly as it is described as advantage of DVCS.

Today Git tooling on Windows is much, much better then 2 or more years ago. You can use remote repo (like GitHub or ProjectLocker and many others) to keep copy of your project away from your workstation with no extra effort/money.

However I use GUI client only to looks at diffs (and sometimes to choose files to commit), so it's better to not afraid of command line -- it's really nice.

So as of today I would go with Git.

like image 150
Grzegorz Gierlik Avatar answered Sep 23 '22 14:09

Grzegorz Gierlik