Skip to content

Instantly share code, notes, and snippets.

@benbowler
Created August 20, 2013 17:34
Show Gist options
  • Save benbowler/6284613 to your computer and use it in GitHub Desktop.
Save benbowler/6284613 to your computer and use it in GitHub Desktop.
Fix line breaks for git
find . -type f -exec grep -qIP '\r\n' {} ';' -exec perl -pi -e 's/\r\n/\n/g' {} '+'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment