# Accept Windows End-of-Line Files in Git Repository ## Metadata **Status**:: #x **Zettel**:: #zettel/literature **Created**:: [[2025-04-25]] **Parent**:: [[♯ Git]] ## Synopsis I set `core.autocrlf=input` to prefer Linux line-ending style. It will prevent adding new files in Windows line-ending style because by default `core.safecrlf` is also enabled. **Solution**: Use `.gitattributes` to set the line-ending style for selected files. > [!example] > ``` > *.als eol=crlf > ``` ### References - [gitattributes - eol](https://git-scm.com/docs/gitattributes#_eol) - [git-config - core.autocrlf](https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreautocrlf) - [git-config - core.safecrlf](https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresafecrlf) - [[How Git core.autocrlf Works]]