step1:
$ find . -type d -name ".svn" | xargs rm -rf
step2:
$ find . -name .git -print0 | xargs -0 rm -rf
本文地址:http://jimneylee.github.com/2012/12/20/remove-svn-git-file