A problem/task I want to solve
I need to declare a specific Git behavior for the concrete files types like to treat .png files like binaries and checkout scripts (.sh, .bash, etc.) with LF` line endings.
The solution I'd like
I need a command that generates and commits .gitattributes file in the current Git repository.
Additional context
More info about some implementation hints on https://help.github.com/en/github/using-git/configuring-git-to-handle-line-endings#per-repository-settings.