The .gitattributes file will make sure line endings are normalized to LF on checkout.
The .editorconfig file ensures that, for contributors with the extension, line endings won't be converted to CRLF.
Test
Made the modifications and pushed to a remote branch
Deleted my local copy of the repository
Cloned the repo branch with the changes: git clone <repo> -b <branch>
Fixes #67
Changes
The
.gitattributes
file will make sure line endings are normalized to LF on checkout. The.editorconfig
file ensures that, for contributors with the extension, line endings won't be converted to CRLF.Test
git clone <repo> -b <branch>
Result: all Bash scripts have LF line endings.