Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to roll back my SVN repository , I just want to tell this revision now should be a head revision .

Is it possible to do so in SVN ?

Thanks .

share|improve this question
duplicate of… – AlexD May 29 '11 at 7:49
up vote 2 down vote accepted

You can't officially "roll back". You can copy the favored version to a new node just off the root, and then delete everything else, and then move all the children of the new node to the root, and then delete the new node.

Or, you can do an admin dump and put in params to discard everything after the favored version, then reimport into a new repository and rename accordingly.

share|improve this answer

I've only done this in the lab but you can change the contents of /path/to/repo/db/current file to the desired rev and it seems to do what you ask. Only done it a couple times but new commits did work. Be good to make a backup first.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.