Page 1 of 1

source control for personal use

Posted: Sat May 23, 2009 11:38 pm
by zorocke
I'm just wondering, how many people use source control locally for their own personal use? I'm thinking about trying it on my next project. You know, set up a local SVN server on your own computer. Of course this would make development much cleaner, even though it's just me working on the project.

Re: source control for personal use

Posted: Sun May 24, 2009 12:01 am
by Karan
I like using SVN for my personal projects. Wouldn't code without it if it's more than a small script or exercise or the like...
Though not local, got a personal repository on a server in my university.

Re: source control for personal use

Posted: Sun May 24, 2009 1:32 am
by zorocke
Karan wrote:I like using SVN for my personal projects. Wouldn't code without it if it's more than a small script or exercise or the like...
Though not local, got a personal repository on a server in my university.
That seems nice.

It would be cool if i could get a server running SVN, but this might be hard to find for free if i'm not open sourcing the project( Lol, i haven't even decided what my next project will be yet. I've been out of programming for a while). Any one have any suggesting on SVN hosting solutions for non-open source projects?

Re: source control for personal use

Posted: Sun May 24, 2009 6:16 am
by cdleonard
You don't need a svn server; you can create a local svn repository which can only be accessed using a file:/// url. Here's how it would look like:

Code: Select all

svnadmin create privsvn
export PRIVSVNREPO=file:///home/user/privsvn
svn checkout $PRIVSVNREPO privsvn-co
Now the privsvn-co should contain a checkout of your new empty repository; and you can start adding stuff. Later you can configure a web server for the same repository; but you don't have to.

Re: source control for personal use

Posted: Sun May 24, 2009 8:17 am
by jacmoe
Use Git.
It's perfect for personal use. Does not need a server, is fast and flexible.
However, if you need a free server (SVN) for closed source, try Origo.

Re: source control for personal use

Posted: Sun May 24, 2009 11:46 am
by milliams
jacmoe wrote:Use Git.
It's perfect for personal use. Does not need a server, is fast and flexible.
I have to agree. Git just makes perfect sense for doing local source control. It adds hardly any overhead at all and doesn't require a server. If you ten want to distrubute the code, loning it to a remote server such as GitHub or Gitorious is really easy.
If you want to understand Git really well, try giving the Git Parable a read.

Re: source control for personal use

Posted: Sun May 24, 2009 11:54 am
by spacegaier
Is Git a local SVN or designed for running on a server? Would it also run on simple webspace with php or does it require full server access?

Currently, I use AnkhSVN. It creates a local SVN server and is integrated in VisualStudio.

Re: source control for personal use

Posted: Sun May 24, 2009 12:22 pm
by jacmoe
Git is distributed source control - let me quote from git-scm.com:
Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and easy to do.
Normal commits are performed locally, as is mostly everything else.
Use pull and push to - well - pull and push from a server, like Github.
One thing I really like about Git is that it's really easy to create, merge, manage branches.
Unlike SVN, which is &%"ยค& :wink:

Re: source control for personal use

Posted: Sun May 24, 2009 12:24 pm
by milliams
To be able to access a Git repository located on a remote server, I believe you need to be able to an application called 'git-daemon' which serves the git based requests to the outside world. I would imagine that you need to have full server access in order to run git-daemon as a service but I'm really not sure.

As far as a web frontend, there's Gitorious (Ruby on Rails), cgit (C) and gitweb (Perl) that come to mind. However, without git daemon running they'll do nothing more than allow people to browse the contents of the Git repo.

Re: source control for personal use

Posted: Sun May 24, 2009 12:27 pm
by jacmoe
Nope. Unless it's installed behind my back: no daemon. Just clone, push or pull. Over ssh. :)

Look at this for a good guide to Git:
http://www.kernel.org/pub/software/scm/ ... ryday.html

Re: source control for personal use

Posted: Sun May 24, 2009 12:31 pm
by milliams
Yeah, ok. I've just found http://www.rubynaut.net/articles/2008/0 ... repository which makes it all seem a lot easier. Just ssh and nothing else :)

Re: source control for personal use

Posted: Sun May 24, 2009 1:37 pm
by zorocke
Git does look interesting since as of now most of my code will be done locally, but i've used SVN before and have a lot of experience with it. I'm also thinking hosted SVN will be good because I might want to sync with my laptop when i go places.
jacmoe wrote:However, if you need a free server (SVN) for closed source, try Origo.

I did find Origo, but I also found xp-dev. I was planning on using xp-dev because it looks like it might be faster from where I am, as far as i can tell.

Re: source control for personal use

Posted: Sun May 24, 2009 2:13 pm
by jacmoe

Re: source control for personal use

Posted: Sun May 24, 2009 2:18 pm
by jacmoe
Also, if you prefer to store your project on a SVN server somewhere, and still use Git locally, you can do that. :)
Use git svn ->
http://justaddwater.dk/2009/03/09/using ... -workflow/
The best of both worlds, IMO. :wink:

Re: source control for personal use

Posted: Sun May 24, 2009 3:04 pm
by Klaim
This is great!
I think I'll try git as while keeping my svn server.

By the way, any problem using git on windows?

Re: source control for personal use

Posted: Sun May 24, 2009 3:26 pm
by milliams
Klaim wrote:By the way, any problem using git on windows?
There were claims that it is slower than on Linux but I've not had any trouble using msysgit.

Re: source control for personal use

Posted: Sun May 24, 2009 3:38 pm
by jacmoe
One issue: Git for windows doesn't seem to have https support (in cUrl) compiled in. You need to use http or svn protocols.
For GUI, I use git-cola. :)

Re: source control for personal use

Posted: Sun May 24, 2009 4:41 pm
by nikki
Git repository is as easy as 'git init'.

Re: source control for personal use

Posted: Tue May 26, 2009 10:14 pm
by Speedo
Anyone have guides or etc for managing projects with SVN?

Re: source control for personal use

Posted: Tue May 26, 2009 10:17 pm
by jacmoe
I use(d) the official SVN handbook, the manual that comes with TortoiseSVN, and good 'ole Google for the rest.

<edit>
If you are going to branch/merge, make sure you read this:
http://www.ogre3d.org/wiki/index.php/Merging_Branches

I gave up on SVN. It's so much easier to branch/merge using Git.

However, Git has its share of drawbacks, so maybe a combination of the two?

</edit>

Re: source control for personal use

Posted: Tue May 26, 2009 11:01 pm
by Karan
Or Mercurial? Had to use it for a little project, is similar to git. Though I didn't use any advanced features. Otherwise I stick with SVN so far because I'm more familiar with it and TortoiseSVN seems much better than the GUI tools for git/mercurial (or has that changed? It's been a while since I checked out git). I don't want to learn all those console commands...

Re: source control for personal use

Posted: Tue May 26, 2009 11:18 pm
by jacmoe
Git-Cola is nice. The 'built-in' Git-gui is not bad either. And then there's TortoiseGit (which has improved a lot lately). :)

Mercurial seems to be okay, but doesn't have cheap local branching or a staging area (Git-stash).

Re: source control for personal use

Posted: Sat May 30, 2009 1:01 pm
by zorocke
TortoiseGit looks cool because from the screenshots it looks very similar to TortoiseSVN which i'm already good at using.

Re: source control for personal use

Posted: Tue Jun 23, 2009 11:03 pm
by :wumpus:
jacmoe wrote: It's perfect for personal use. Does not need a server, is fast and flexible.
I second that.
The only drawback of GIT is the confusing stuff when something goes wrong (like a conflict). It starts to spew jargon and very terse error messages in that case. SVN is much nicer and user friendly when that happens.
So to a beginner to source control I can only recommend setting up a personal SVN server or using some repository...