Skip to content

Instantly share code, notes, and snippets.

@4aficiona2
Last active December 5, 2016 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4aficiona2/612b4c73defd7500391dbe96bda37177 to your computer and use it in GitHub Desktop.
Save 4aficiona2/612b4c73defd7500391dbe96bda37177 to your computer and use it in GitHub Desktop.
Get rid of "fatal: CRLF would be replaced by LF in [file]"
// single file
dos2unix -f FILENAME
// change line endings on files recursively
find /core/sites/all/modules -type f -exec dos2unix {} +
thx https://coderwall.com/p/lc8rkg/get-rid-of-fatal-crlf-would-be-replaced-by-lf-in-file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment