Getting started with Subversion.
The minimum you need to know.

Subversion is a wonderful tool for Version Control, but the learning curve can be steep, so here is what I consider the minimum number of command that you need to get started with SVN. All 4 of them.

1 Creating a repository

First off, create a repository using the svnadmin command:

svnadmin create /path/to/repo

2 First-time file import

If you have a directory tree of files that you want to get into the repository to get started with, use svn import:

cd /path/to/source
svn import * file:///path/to/repo

You then need to check-out the repository that you have just created to create a working copy.

mkdir ~/work
cd ~/work
svn co file:///path/to/repo

3 Add multiple files

If you have added several files to your working copy and want to add them all to the repository, use the following command (from the root of the working copy directory)

svn add * --force

Note that this will not check the files into the repository, only note that the new files need added.

4 Commit files into the repository

To commit any changes to the repository, use:

svn ci

5 Autoprop and keyword substitution

If you want to use keyword expansion then you will need to edit the ~/.subversion/config file and switch autoprops on and also edit the svn:keyword options for the files you need.

You will also need to set the keyword property using e.g.

svn propset svn:keyword Id filename.py

Author: Stuart

Created: 2016-07-10 Sun 17:32

Validate