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 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."