Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 committed some sensitive data into the SVN by mistake. I don't want my collaborators to see these data. Can I revert the SVN to the previous state and remove the latest revision from SVN history (pretends that the latest commit were never made at all)?

share|improve this question
If it's a password, even if you do manage to remove it, you should change the password wherever it's used. Assume it's been seen. – Bob May 16 '12 at 5:44
Above comment very true. How do you know no one has already checked out that revision? You can't change those. – Daniel Andersson May 16 '12 at 11:45
If you're using Apache as your SVN server, then you should be able to check the server logs to actually see if the password-containing file has been checked out, cat'ed or exported. – Lèse majesté May 18 '12 at 5:11
up vote 4 down vote accepted

Not easily - you can use svndump and svndumpfilter to filter out that revision, or if you have backups of the server side, restore from a backup before the checkin. In the first case you'll end up creating a new repository (new UUID) so everyone will know it's been changed server side. Sorry, but SVN is deliberately hard to actually remove data from.

share|improve this answer
Full directions are described here. – Lèse majesté May 18 '12 at 5:08

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.