I've inherited a repo that's been developed on Windows and has always been hosted on Windows. Historically, autocrlf
has been disabled, so our main repo will have crlf line endings.
However, we're moving to more of a cross-platform situation, so we want to enable autocrlf
.
I've tried running git add --renormalise .
as per these answers but when I try and commit it, there are no changes, presumably because they're already CRLF and I'm on Windows, so I can't push it to have it renormalised on the remote.
How would I go about doing this? Do I need to check it out on a Unix machine then do a push?