简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM