About Git Attributes
You can force all text files to be saved with \n line endings using the .gitattributes file in your git repository.
Place the content like this in that file:
* -text
*.conf text eol=lf
*.css text eol=lf
*.html text eol=lf
*.ini text eol=lf
*.js text eol=lf
*.json text eol=lf
*.jsx text eol=lf
*.md text eol=lf
*.po text eol=lf
*.py text eol=lf
*.scss text eol=lf
*.sh text eol=lf
*.txt text eol=lf
*.wsgi text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
Also by me
Django Messaging 🎅🏼
For Django-based social platforms.
Django App for You
Django Paddle Subscriptions 🎅🏼
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent 🎅🏼
For Django websites that use cookies.
Django App for You