Skip to content

Instantly share code, notes, and snippets.

@germanfrelo
Last active January 7, 2023 17:33
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 germanfrelo/940b8cefd9d1bcddcd0bf837a17ce275 to your computer and use it in GitHub Desktop.
Save germanfrelo/940b8cefd9d1bcddcd0bf837a17ce275 to your computer and use it in GitHub Desktop.
Normalize line endings in Git (.gitattributes)
# Ensure that text files introduced to the repository have their line endings normalized to LF. More info:
# - https://git-scm.com/docs/gitattributes#_end_of_line_conversion
# - https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
# - https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/
* text=auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment