Skip to content

Instantly share code, notes, and snippets.

@gregberns
Last active November 12, 2020 19:23
Show Gist options
  • Save gregberns/7a1229e1101e97b715031b966f185431 to your computer and use it in GitHub Desktop.
Save gregberns/7a1229e1101e97b715031b966f185431 to your computer and use it in GitHub Desktop.
Git: Windows switch CRLF to LF

Git: Windows switch CRLF to LF

When working on Windows with Docker, Linux, etc, your files should be standardized to LF. This command only needs to be run once:

git config --global core.autocrlf input

Source: https://stackoverflow.com/a/5834094/684966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment