create archive without hidden files

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…

Leave a Reply

Your email address will not be published. Required fields are marked *

question razz sad evil exclaim smile redface biggrin surprised eek confused cool lol mad twisted rolleyes wink idea arrow neutral cry mrgreen