Skip to content


Make sure your EDITORs are setup, if in doubt

export EDITOR=vim; export SVN_EDITOR=vim

Common SVN Commands

Checking out a Repo


svn co

This will checkout the scripts directory the repos.

Checking the Status


svn info
svn status
svn log
svn log --diff

With the above commands it will assume your current working directory as the path. You can use a file path such as ~/svn/scripts you can also a URI like file:///home/user/svn/scripts/file_or_dir_here or

When using svn log commands you should pipe it into less or head otherwise there will be a lot of information in your terminal

Committing Changes


svn commit -m "Commit Message Here"

Adding a New File


svn add NewFileHere

Creating a New Directory


svn mkdir NewDirHere

Removing a Data


svn rm DataToRemoveHere

Reverting Changes


svn merge -r current_version:previous_version

There is a shortcut to just revert the latest change svn merge -c -REV . or if you need to do multiple commits add them with a comma svn merge -c -REV,-REV .

Once you do that, you will then need to commit the changes. svn commit -m "Reverted to REV"

Accept Server Cert

svn --trust-server-cert 
svn --trust-server-cert --non-interactive