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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | * -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 Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You