Committing changes to the repository

This is how we really add files to the repository, we commit them. To jump right to it, we use the commit command like this:

svn commit . -m "Testing our first commit"

It produces some output like the following:

Sending        laika.php
Transmitting file data ......
Committed revision 2.

The dot after the commit symbolizes this directory, so as written, the command assumes that you are inside the root of your working copy. You could run that command from elsewhere on the file system simply by specifying the full path and it would have the same effect:

svn commit /full/path/to/my-working-copy -m "Testing our first commit"

The -m is short for --message, and it allows us to describe this particular commit. These messages ...

Get WordPress 3 Plugin Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.