1

While attempting to Git Commit -> "master" a Arduino INO file I get the error:

TortoiseGit fatal: LF would be replaced by CRLF in xxx.INO

I had chosen 'Commit Line Endings as they are' as I was installing Git for Windows.

Any idea on this? Thanks.

Yue Lin Ho
  • 2,945
  • 26
  • 36
Seti Net
  • 693
  • 1
  • 7
  • 24

1 Answers1

1

This is not really an Arduino specific question. The only Arduino specific part is that Arduino's IDE does not use CRLF. Having said that you might want to consult "What's the best CRLF handling strategy with git?"

Once you read this, add a line to .gitattributes for your ino files to not use CRLF.

*.ino text eol=lf
Community
  • 1
  • 1
Udo Klein
  • 6,784
  • 1
  • 36
  • 61
  • Thanks for this answer Udo. Like a dancing dog. It's amazing that it happens at all not how well it dances. – Seti Net Jun 14 '13 at 16:09
  • It looked like this was the right answer - but it was not. I read though all the material on this problem and did install a .gitattributes file with *.ino text elo=lf but the results were the same. Any other ideas? – Seti Net Jun 15 '13 at 04:55
  • Hmmm, looks more like a tortoiseGit issue then. Did you check what the line endings actually are right now? Just to be sure what we have to go after. – Udo Klein Jun 16 '13 at 07:09