Apache Software Foundation
[S] Subversion

Apache Subversion: Quick Start

Graphical user interface (GUI) clients

If you are not familiar with Subversion, you may be better served by a graphical client. (The Subversion project only maintains a command-line-based clients, but a number of third parties maintain graphical clients that build on our API (for programmers).) We do not maintain a list of such clients; instead, we recommend you do a Web search for Subversion GUI client.

Make an existing directory a working copy of a new repository

The following commands will convert a ./my-directory/ containing files into a working copy of a newly-created repository:

On Unix:

$ mkdir -p $HOME/.svnrepos/
$ svnadmin create ~/.svnrepos/my-repos
$ svn mkdir -m "Create directory structure." file://$HOME/.svnrepos/my-repos/trunk file://$HOME/.svnrepos/my-repos/branches file://$HOME/.svnrepos/my-repos/tags
$ cd my-directory
$ svn checkout file://$HOME/.svnrepos/my-repos/trunk ./
$ svn add --force ./
$ svn commit -m "Initial import"
$ svn up

On Windows:

> mkdir C:\repos
> svnadmin create C:\repos\my-repos
> svn mkdir -m "Create directory structure." "file:///C:/repos/my-repos/trunk" "file:///C:/repos/my-repos/branches" "file:///C:/repos/my-repos/tags"
> cd my-directory
> svn checkout "file:///C:/repos/my-repos/trunk" ./
> svn add --force ./
> svn commit -m "Initial import"
> svn up

See also quickstart instructions in The Subversion Book.