You want to create a new repository for svn with svnadmin
Subversion is a free and open source version control system. It manages files and directories, and the changes made to them, over time. A version control system, also called concurrent versioning system, is used for software development. It allows a team to work together and gives them the ability to track who has changed what, where and wenn in the sources.
Although it is normally used in team work, it can very usefull for a single programmer too.
To start with subversion, you need to install the program and add a repository.
To install subversion on a debian like system (e.g. kubuntu) you just need to execute:
apt-get install subversion subversion-tools
I prefer to install kdesnv, kdesvn-kio-plugins and libsvnqt3 too. I use kdevelopment for my IDE (integrated development environment) which has a subversion plugin available.
After the installation, you can create a repository. My repository is located in my home drive. Which should not be the case for developing in a team. Here we create a repository called repos in the /usr/local/svn directory.
svnadmin create /usr/local/svn/repos
To import a project into the newly created repository you can execute the following:
svn import MyProgramDir file:///usr/local/svn/repos/MyProgramDir -m "My first program"
Please note that for making it even more professional, you should create a structure like:
MyProgramDir - Trunk
MyProgramDir - Tags
MyProgramDir - Branches
For more information about organising your svn repository you can consult the subversion book which is available for free.
Disclaimer:The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
About the Author
Author:- Keskon GmbH & Co. KG
Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.