September 5, 2008, 5:10 am
As a programmer, I’ve been using find to locate string in my source code. Issuing a find would include svn files too which is not my intension. Here’s the command:
$ find . -not -regex '.*svn.*' -exec grep "$1" '{}' \; -print
March 30, 2008, 12:43 pm
Windows:
Save the following to the folder to clean to a filename with a .cmd extension (cleansvn.cmd). After that issue the command, eg., C:\www>cleansvn
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *svn') do ( rd /s /q "%%i" )
Linux:
Cleaning a svn folder:
find . -name .svn -exec rm -rf {} \;
Using svn export:
Export from your working copy (doesn’t print every file and directory):
$ svn export a-wc my-export
Export complete.
Export directly from the repository (prints every file and directory):
$ svn export file:///var/svn/repos my-export
A my-export/test
A my-export/quiz
…
Exported revision 15.