From time to time it can be handy to remove subversion references from code that is sitting on the file system. The following command will remove all '.svn' directories from the current directory on down:
user@machine:~/dev/sample1$ rm -rf `find . -type d -name .svn`
(Please note those are grave accent quotes - below the tilde on the key left of the one(1) key.)
This command should work for all flavours of Unix.
~Fin
Too often I figure out how to do this or that on Linux systems and in my haste to complete whatever task I've been assigned this "How To" knowledge gets lost. So here, I will begin posting little odds and ends in hopes of not needing to re-research past efforts for Linux tips, tricks, hacks, and other good to know things. If you find yourself here and know of smaller, faster, better ways of doing any of this please let me know - only through cooperation can we all get better.
Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts
Friday, January 15, 2010
Subscribe to:
Posts (Atom)