Checkout a specific revision from SVN from the command line

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

Was this useful?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.