Reverting a commit in svn

If you want to revert your commit use below command svn merge -r [current_version]:[previous_version] [repository_url] svn commit -m “Reverting bad commit. [previous_version]”