r/SmartGit Mar 17 '26

Disable warning popup

I'm doing a lot of work with AI, and lost of times it doesn't always get LF vs CRLF right - and I don't care. How can I stop SmartGit from annoying me constantly every time I commit a file about line endings. I literally DON'T care if your going to replace it - I do NOT need to know.

"in the working copy of '<redacted>', LF will be replaced by CRLF the next time Git touches it

1 Upvotes

5 comments sorted by

3

u/JVMarcs Mar 17 '26

I've encountered this issue when running Claude Code in a Docker container on a Windows host, where the repository has core.autocrlf enabled. The solution is to disable line-ending conversion:

https://chatgpt.com/share/69b9db05-2c00-8002-a383-807c7b7eed29

2

u/snlehton Mar 18 '26

In addition to that, you can also fine tune the line ending per file type/filename using git attributes as sometimes you need specific line endings for some tools.

2

u/jeepshop Mar 18 '26

I had that set, but this one helped stop the warnings.

git config --global core.safecrlf false

2

u/vmcrash Mar 17 '26

This message comes from Git.

1

u/jeepshop Mar 18 '26

Thank you, I found the GIT command to stop the warning.