Tuesday, February 7, 2012

Subversion Tricks



Below is my list of commands that I commonly run when working with subversion on my projects. I never can remember them so I come here to copy and paste when I need to...


Delete versioned files recursively using a wildcard match

find ./ -name *.pidb | xargs svn rm --force


Set svn properties recursively from a text file on the file system

svn propset svn:ignore -R -F /svn/ignores.txt .


Revert all changes in folders and files recursively on the file system

svn revert -R .


Remove versioning of files recursively with a wildcard and without deleting locally 

find ./ -name *.pidb | xargs svn delete --keep-local