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)?
-
4If 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.– BobCommented May 16, 2012 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 AnderssonCommented May 16, 2012 at 11:45
-
1If 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éCommented May 18, 2012 at 5:11
Add a comment
|
1 Answer
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.
-
1