Basic Subversion Commands (svn)


I don’t use Subversion very often, as I normally use Git. Here is a reminder of the basic workflow. I’m using the Implied Cookie Consent WordPress plugin repository as an example.

Checkout a repository into a new directory:

svn checkout implied-cookie-consent

Getting the latest changes from the server:

svn update

Checking what files have been changed locally:

svn status

Showing a diff of the local changes:

svn diff

Adding new files to be commited:

svn add <files>

Deleting files to removed on commit:

svn delete <files>

Committing the changes:

svn commit

Adding a tag:

svn copy -m "Tag 1.0 release."

If you enjoyed this post, consider leaving a comment or subscribing to the RSS feed.
This site uses cookies. Find out more about cookies.