Checkout a specific revision from SVN from the command line

23rd May 2012

Warning: This post is over a year old. I don't always update old posts with new information, so some of this information may be out of date.

How to checkout a specific revision from a SVN (Subversion) repository.

If you're checking out the repository for the first time:

$ svn checkout -r 1234 url://repository/path

If you already have the repository checked out:

$ svn up -r 1234

Questions? Comments? I’m @opdavies on Twitter.

Tags: svn, version-control

About the Author

Picture of Oliver

Oliver Davies is a full-stack Web Developer and System Administrator based in the UK. He is a Senior Developer at Microserve and a part-time freelancer specialising in Drupal, Symfony and Laravel development and Linux systems administration.