21 April 2016

Recently there has been the need for me to revert changes in Subversion and to remove all unversioned files. This requires a few different Linux commands along with some Subversion commands.

Revert entire folder structure

$ svn revert –depth=infinity .

Remove all unversioned files

$ svn status | grep ^? | cut -c9- | xargs rm -rf

Recursive Add

$ svn add * –force

Search Log File

$ svn log -v –search &#lt;searchtext&#gt; | more