A page of quick Subversion commands to carry out simple administrative and maintenance tasks in a repository. Good if you don't know what you're doing yet.
How to recover files that have accidentally been deleted with 'svn delete'.
To recover a file from svn that you deleted from your local repository, it’s first necessary to get the proper name of the file, and the revision of the repository it last existed in. To do that (assuming you don’t know, because if you do you have bigger issues), you go to the directory it was in (or as close as you can get to the directory it was in) and run:
svn log --verbose
You should be able to find the file you’re looking for and the revision you need in the output of that command. Assuming your file’s name is ‘file.txt’ and it was in revision 250, you run the following to recover it:
svn up -r 250 file.txt
A Subversion tutorial written for software developers and not sysadmins or repository maintainers. Teaches you what you need to know in order to get work done.
code development software subversion revisioncontrol svn tutorial
How to undo an
svn add of a file prior to committing it to the server.
svn revert --recursive folder_name
How to revert a file in a Subversion repository checkout to a known-good revision. Be sure to put a - sign before the revision code you want to check out.
software howto svn subversion development revert
The official handbook on the Subversion revision control system. If you've never used it before, start here. It's free to read online and download for later (HTML, PDF, DocBook XML). Or you can buy it from O'Reilly for good karma.
3694 links, including 185 private