Removing .svn directories, recursively
August 13th, 2008This command can be handy. Let say you want to archive your project from the repository and you don’t want to include the ‘.svn‘ directories.
First, checkout your project from the repository:
svn co http://myproject.domain.org/svn/trunk/ myproject-dir
Second, remove the .svn directories:
rm -rf `find myproject-dir -type d -name .svn`
Then archive it using tar command:
tar -cvzf myproject_archive.tgz myproject-dir
…and there you have it!
Tags: How-To, Subversion
Leave a Reply
Pages
Categories
- Apache (1)
- CSS (2)
- Database (2)
- Development (9)
- Gadget (3)
- Google (4)
- How-To (16)
- HTML (2)
- Internet (4)
- JavaScript (2)
- Linux (15)
- Music (3)
- MySQL (2)
- PHP (4)
- Python (1)
- Sport (1)
- Subversion (4)
- Uncategorized (3)
- Windows (6)
- Wordpress (2)
Archives















