Subversion is a free/open-source version control system. That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data, or examine the history of how your data changed. Subversion can operate across networks, which allows it to be used by people on different computers. At some level, the ability for various people to modify and manage the same set of data from their respective locations fosters collaboration.
The goal of the Subversion project is to build a version control system that is a compelling replacement for CVS in the open source community
rpm –qa | grep subversion
yum install subversion
Plan and create the Repository Location:
Create directory for the repository
To create a repository use the below command
#svnadmin create /home/subversion
Importing Initial data into the Repository:
1. Import from local machine
svn import /home/loguinfo.com file:///home/subversion/loguinfo.com/trunk -m “Initial load for loguinfo.com by logu”
2. Import from Remote machine using Subversion client
svn import /home/loguinfo.com svn+ssh://email@example.com/loguinfo.com/trunk –m “Initial import for loguinfo.com by logu”
3. Import from Remote machine using TortoiseSVN
a. Select folder with project files
b. Right-click and select the TortoiseSVN Import option
c. Specify path of new project repository
Now, the repository has some project folders.
Getting working Copy for editing (For eg changing/editing the website code)
svn checkout svn+ssh://firstname.lastname@example.org/loguinfo.com/trunk /localhome/myproject/loguinfo.com
So now you have a local copy of the project code. Enter your working copy and edit a file's contents.
Run svn commit to commit the new version of your file to the repository.
Run svn update to bring your working copy “up-to-date” with the repository.