Following situation:
I\'m working on a Mac running OS X and recently joined a project whose members so far all use Windows. One of my first tasks was to set up the c
find . -not \( -name .svn -prune -o -name .git -prune \) -type f -exec perl -pi -e 's/\r\n|\n|\r/\n/g' {} \;
This is much safer as it avoids corrupting your git repo. Add or replace .git, .svn with .bzr, .hg or whatever source control your using to the not list.