Having a .gitattributes file can tell git that the bash files etc should have the LF endings. More info here https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings