SVN Cheat Sheet
A collection of common problem and solution with Subversion version control system

This article contains a list of cheat sheets, common problems, and solutions that I encountered while working with the SVN version control system.
Although I don’t use SVN regularly anymore, there are still some projects that rely on it, such as older versions of Open Dental Software.
Hopefully, this cheat sheet will be helpful to some of you.
Get Current SVN Revision
Problem: I want to see the current revision for a specific SVN repository.
Solution: Use the svn info --show-item revision command.
$ svn info --show-item revision
15402
Remove Untracked Files in SVN Repository
Problem: I want to clean the current SVN repository, removing untracked files.
Solution: Use the svn cleanup . --remove-unversioned command.
$ svn cleanup . --remove-unversioned
D demo.log
D whatfile.txt
Reset a Working Copy to Current Revision in SVN Repository
Problem: I have many modified files in the current SVN repository. How can I reset them all to the original files of the current revision?
Solution: Use the svn revert --recursive . command.
$ svn revert --recursive .
Reverted 'opendental16.2/MobileWeb/MobileWeb.csproj.user'
Reverted 'opendental16.2/OpenDentalServer/OpenDentalServer.csproj.user'
Reverted 'opendental16.2/WebHostSynch/WebHostSynch.csproj.user'
Reverted 'opendental16.2/CentralManager/FormCentralPatientSearch.cs'
Reverted 'opendental16.2/CentralManager/FormCentralManager.cs'
Reverted 'opendental16.2/WebForms/WebForms.csproj.user'
Reverted 'opendental16.2/OpenDentBusiness/Data Interface/Userods.cs'
Checkout to a Specific Revision of an SVN Repository
Problem: I want to check out an SVN repository at a specific revision, for example, revision 1234, instead of the latest revision.
Solution: Use svn checkout -r1234 https://opendentalsoft.com:23793/svn/opendental to check out that revision.