SVN revert local checkout to a previous revision

Envision this: For some reason, you’ve accidentally executed:

svn up

picking up all the new updates on the local checkout (co) of your working branch and you were lucky enough to have executed before:

svn info

to capture what was the revision number of the repository that local co was at. Say it was revision number 17456. You can rollback your local co to that revision number by running:

svn up -r 17456
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s