Seti Net
Seti Net

Reputation: 743

fatal error when commit using TortoiseGit

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.

Upvotes: 1

Views: 453

Answers (1)

Udo Klein
Udo Klein

Reputation: 6882

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

Upvotes: 1

Related Questions