.gitignore file for AS projects

@fikejja1 git has an eol feature (core.autocrlf) making cross OS development easier by adapting the line endings to the OS of the user checking out.

You can disable it per repo / user / machine according to the git settings structure, which I don’t recommend, since everyone always has to make sure the settings are correct.

git config --global core.autocrlf false

The easier and better solution is, just to create a file in your project root directory - same as .gitignore - called .gitattributes and you just put * -text in it, which basically tells git to disable autocrlf (-text) for all files (*).

The .gitattributes file can be used for a lot of other things too, feel free to check the docs.

Best regards,
Marcel

3 Likes