Basic Subversion Commands (svn)

subversion_logo-384x332

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 https://plugins.svn.wordpress.org/implied-cookie-consent/ 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 https://plugins.svn.wordpress.org/implied-cookie-consent/trunk/ https://plugins.svn.wordpress.org/implied-cookie-consent/tags/1.0/ -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.