10 lines
433 B
Plaintext
10 lines
433 B
Plaintext
# https://docs.github.com/en/get-started/git-basics/configuring-git-to-handle-line-endings[cite: 1]
|
|
|
|
# 1. Let Git automatically manage text files (converts to LF in repo, CRLF on Windows checkout)
|
|
* text=auto
|
|
|
|
# 2. Prevent any conversion/normalization in ALL __data__ folders anywhere in the repo
|
|
**/__data__/** -text
|
|
|
|
# 3. Force shell scripts to always use LF (prevents "command not found" errors on CI/CD or Linux)
|
|
*.sh text eol=lf |