When I try to commit some changed files, I get the following error message with TortoiseGit
fatal: LF would be replaced by CRLF in <some file in the repo>
Now, before I get the usual LF vs CRLF
answers, I know and understand what the debate is about. Secondly, I've also set my global settings to:
core.autocrlf true
Third, I've got a .gitattributes
file.
So I -want- to make sure or files are forced to have CRLF
.
What I don't understand is that it's saying FATAL
and blocking me from continuing. A Warning? Sure! Do I know what I'm trying to do? I do!
I just want it to convert silently and STFU.
Alternatively, if it's forced to BLOCK me, is there a way I can update all files in the repo to be CRLF
, so this warning is no longer issued?
These repos are private, so they will never be developed outside of Windows + Visual Studio.
How can I proceed?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…