Member-only story
SVN (Subversion) Repository Setup
Subversion is a repository management software. It stores computer files. Most of Operating Systems, like MacOS and Linux, have subversion.
Let’s see whether your computer system has the Subversion. All the commands are based on CentOS 7.
yum list installed | grep subversion
This command displays the following results on my machine.
subversion.x86_64 1.7.14–14.el7 @base
subversion-libs.x86_64 1.7.14–14.el7 @base
If it is not installed, we can install with the following command.
yum install -y subversion
Now, we need to create a repository to store your files. First, go to the directory where you want to create your repository and run the following command.
svnadmin create [RepoName]
Now, the server repository has been set up. Then we need to put a structure into the repository. First, create an empty directory, go to the directory and create the following directories: trunk, branch and tag.
mkdir trunk branch tag
Then, we import this structure into the repository by importing this directory.
svn import . svn+ssh://[ServerName]/[Path to RepoName] -m "import"
Here, ServerName refers to the machine where the repository was created. If the repository server tends to be changed, the server name is better to be defined in…