Export

Export creates a clean working copy of a project:

It also creates a folder named `project` in the current directory.

svn export http://repository/project/trunk project

Move

Rename a file in working copy or repository:

svn move foo.c bar.c
svn move http://repository/project/trunk/foo.c \ http://repository/project/trunk/bar.c -m "Place comment here."

Status

Display status of working copy:

svn status

Update

Synch working copy with repository:

svn update
svn up

Delete

Delete a file in working copy:

svn delete foo.c

Removes file in the working copy.
Removes file in the repository after a commit.

Add

Adding a file or directory:

svn add foo.c
svn add directory

Branch

Create a new branch:

svn copy http://repository/project/trunk \ http://repository/project/branch/newbranch \ -m "Place comments here."

Revert

Reverts changes in working copy:

svn revert foo.c
svn revert --recursive .

Diff

Displays differences in working copy:

svn diff

Info

Display information of working copy:

svn info

Switch

Switch a working copy to different tag or branch:

svn sw http://repository/project/tags/1.0

Layout

Recommended repository layout:

svn list http://repository/project
/trunk
/branches
/tags

Import

The import command:

1. Setup directory in this format.

repository/project/trunk
                  /tags
                  /branches

2. Then perform the import command.

svn import project http://repository -m "Place comments here."

Tag

Tags are snapshots of a project in time. It’s ideal for marking releases.

To create a new tag:

svn copy http://repository/project/trunk \ http://repository/project/tags/1.0 \ -m "Place comments here."

Commit

The commit command:

svn commit -m "Comments are placed here."

Checkout

The checkout command:

svn co http://repository/project/trunk .