INO files and GIT

Has anyone been able to use TortoiseGIT with INO files.

Under Windows, GIT aborts with an error message about "improper line ending sequence". If I change the file extension from ino to txt everything seems to work. I have run down all the suggestions about adding changes to .gitattributes file but without any luck.

Any ideas on this?

Found it.
You have to configure GIT like this:
git config --global core.autocrlf false

The default is true