Raman Shalupau

fatal: CRLF would be replaced by LF

Pusheen Coding This is my favorite issue! 😻 Why? Because each time this happens, i rush to Google and my gist.github.com to find where I saved my magic conversion code snippet.

  • Run this twice: git config --global core.autocrlf false
  • Do git add again

However, if you’d like to convert just one file or files one by one, then you can run this line:

perl -pi -e 's/\r\n/\n/g' input.file

Good luck coding! 🦄


Raman Shalupau

P.S. Sign up to my newsletter

Hey, I rarely send these, but when I do, you'll be the first to know!