SVN: Revert to a previous revision after a wrong update

Posted on: Apr 30, 2008 by wenbert

Let’s say for example you accidentally ran “svn update” and your working copy got the updates that it shouldn’t have — unfinished patches, etc.

What you should do is check the logs using:

svn log | more

Look for the revision number then:

svn up -r 1234

*where 1234 is the previous revision number you want to go back to.

Another reason why you should properly put comments when commiting to your repository.


Subscribe to comments Comment | Trackback |
Post Tags:

Browse Timeline


Comments ( 5 )

That’s Microsoft doing its hostel Take over!

Shaun added these pithy words on Apr 30 08 at 9:50 PM

Good site thank you
and
Good proxy list

whackatack

Anonymous added these pithy words on Oct 24 08 at 12:06 AM

thanks a lot. :)

nobody added these pithy words on May 07 10 at 6:02 AM

Great list thanks :)

SVNCommands added these pithy words on Jul 07 10 at 2:39 PM

awesome.

linuxrawkstar added these pithy words on Aug 03 10 at 3:46 AM

Add a Comment


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">


© Copyright 2007 eKini Web Developer Blog . Thanks for visiting!