9

Can I use Tortoise SVN to have better version control for source code on my personal computer?

I do not have to share the source code with someone, its just that I am tired of creating a new copy of the file every time I have to make some changes to it and keeping track of all these files.

Is there some link that explains the same that you can direct me to? or just tell me what I should be doing...

3 Answers 3

11

You can just create a "repo" on your filesystem without running a server. This article give detailed instructions. Basically you create a repo folder, use TortiseSVN to create a repository in that folder, and then check out your repo, using the file protocol (file:///path/to/repo), into your development workspace..

Sign up to request clarification or add additional context in comments.

1 Comment

what if I am checking in existing project? this article assumes that it's new project. I get the warning "checkout folder not empty"
4

You can do, and I'd recommend you to do so. I was in your state, about a year ago, modify a little piece of code here and there, and couple weeks later found it to be a total mess with no way of knowing what I did when, for what reason.

Install SVN , install the Tortise SVN shell extension, create a local repo and then start committing as and when you require. Have a look for a tutorial by Jeff Atwood - SVN in Windows

( Assuming Windows, you haven't mentioned your OS, Linux should come with svn installed, else just install it from your package manager).

Comments

4

Git or Mercurial are recent version control systems and may indeed be better suited than SVN for this. TortoiseHG is a Mercurial-compatible GUI similar to TortoiseSVN. The workflow is very similar: Add the files you want to version, Commit whenever you reach a milestone, and Update/Checkout when you want to go back to an early revision.

Mercurial is much easier than SVN to setup and use effectively once you get used to it. You do not need to initialize a separate repository, it lies in your work directory (just run the init command on your workdir).

If you need to work on separate versions of the same project, you can simply make a copy of your work directory, commit different changes in each copy, and eventually pull changes from one to the other if you want (SVN requires you to manually create branches in the central repo, and merges are harder to get right).

Mercurial repositories are also much easier to backup and restore (you can always simply copy them, but you can use push and pulls to make incremental transfers to your backup location)

Here is a good reference book about Hg; once you get the basics, GUI usage should follow naturally.

1 Comment

I second this; I'm sure OP will find either one of git or mercurial vastly superior to SVN or CVS. Personally, I find mercurial much simpler to use than git, with better windows support, but git I'm sure would be fine as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.