A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

SVN: Revert to a previous revision after a wrong update

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.

This entry was posted in General and tagged . Bookmark the permalink.

6 Responses to SVN: Revert to a previous revision after a wrong update

  1. Shaun says:

    That’s Microsoft doing its hostel Take over!

  2. Anonymous says:

    Good site thank you
    and
    Good proxy list

    whackatack

  3. nobody says:

    thanks a lot. :)

  4. SVNCommands says:

    Great list thanks :)

  5. linuxrawkstar says:

    awesome.

  6. Pinoy Movie says:

    thanks man… helps a lot to me…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>