I learned that git config --global core.autocrlf true
is the method used to solve LF will be replaced by CRLF
error in git. At first, I thought that this method would be applied continuously once applied, but it seems that is not the case when I actually use it. Whenever I use git add
, LF will be replaced by CRLF
warning always comes up.
So my question is:
- Do I have to apply
core.autocrlf
whenever I needed? - Is there any method to apply
git config --global core.autocrlf true
permanently?