I have a folder under version control. I want to make a copy of it to send around, but don\'t want to include all the .git directories and the files underneath it.
Is
cd to the repository then
cd
find . -name ".git*" -exec rm -R {} \;
Make sure not to accidentally pipe a single dot, slash, asterisk, or other regex wildcard into find, or else rm will happily delete it.
rm