Skip to content

Instantly share code, notes, and snippets.

@he3als
Last active November 15, 2022 16:17
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 he3als/16dec92643a0af8d47b6615ee2f0873f to your computer and use it in GitHub Desktop.
Save he3als/16dec92643a0af8d47b6615ee2f0873f to your computer and use it in GitHub Desktop.
Fix batch scripts in GitHub repos
*.bat eol=crlf
*.cmd eol=crlf
@he3als
Copy link
Author

he3als commented Nov 15, 2022

Add this file to the root/start of your GitHub repo.

This tells Git/GitHub to not automatically convert batch scripts to Unix line endings (LF).

Unix line endings have a lot of issues with batch scripts, like batch labels not working.

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