It often occurs to me that I want to copy a project (to use it as a template), but I don’t want to manually remove all the hidden version control files.
This can easily be achived using tar. In my case, I wanted to remove the subversion files, to I used
tar czvf project.tgz –exclude .svn project
Afterwards, I untar in a different directory, replace some magic strings (see here) and voila…