A very short Subversion Intro
Subversion
Subversion (SVN) is a version control system. Files are stored centrally in a SVN repository. Once a repository is created it can be accessed by different methods. Users can checkout files from a repository into their working directories. They can be modified there and send back to a repository with a commit command. Alternatively one can update his working directory from a central repository. Different users can can concurently modify the same file, it is called a conflict and it's up to them to resolve it.
How to create a repository
It has to be done locally on a system where we want to create a new SVN repository
svnadmin create [svn-dir]
Access Methods
A SVN repository can be accessed with its URL. The same repository can be accessed concurently with these methods:
-
file:///.. - repository on a local file system
-
svn+ssh://user@host/.. - SVN protocol through a SSH tunnel. With an already configured ssh access it works right away. For more details about SSH invocation with parameters, see a chapter in Subversion Book
-
http://host/.. - WebDAV protocol
-
https://host/.. - the same as above but secured
A typical URL looks like http://host/svn-dir/my_project/directory
Basic commands
Populating a repository with local files:
svn import -m "an import comment" local_directory svn+ssh://..../directory
From my computer I can now checkout files from repository into my local working directory ./
svn checkout svn+ssh://.../directory
svn commit
saves changes from ./ working directory into its svn repository
svn update
gets updates from repository into ./ working directory
Clients
Besides command line interface there are a number of GUI client tools available
Tortoise SVN - a popular windows explorer add-on
