Skip to content

Instantly share code, notes, and snippets.

@nhatnx
Created June 13, 2024 07:52
Show Gist options
  • Save nhatnx/ea372193032481c6fca31d336e00ca66 to your computer and use it in GitHub Desktop.
Save nhatnx/ea372193032481c6fca31d336e00ca66 to your computer and use it in GitHub Desktop.
[Git] Prevent git from converting CRLF automatically in Windows and Unix
  • Open .git/config file.
  • Add autocrlf = false and safecrlf = true to [core] section.
  • Save the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment