When developing a project, you may want to keep a version control of all your files so that you can easily revert to an earlier page (or the previous revision) to fix any bugs or in the event that someone accidentally deleted your files.
In Ubuntu, the easiest way to do version control is to set up a Subversion (SVN) server.
Next, we are going to create a directory to hold your repository.
Give apache the access right to the repository
Configure Apache for SVN access
Uncomment the codes by removing the ‘#’ in front of the following lines:
If you have only one repository for your SVN, uncomment the following line
Else if you are setting up multiple repositories, uncomment this line
Remember that at any time, only SVNPath or SVNParentPath is uncommented. Do not uncomment both at the same time.
Create a password for your username
Now open your browser and go to http://localhost/svn. If you see the following, the your installation is successful.
Importing your project into SVN
You have successfully installed and configured SVN, now we need to import our project files to the SVN.
Go to Applications->Programming->RapidSVN
In the RapidSVN, go to Repository->Import
In the window, enter the following:
Click OK. Enter your username and password. Your project should be in the SVN now.