I want to force my repo to always use windows line endings, regardless of the user's environment or the setting of core.autocrlf. I've read about using .gitattributes to set the line endings, but haven't been able to make that work. My .gitattributes file looks like this:
* text=auto * text eol=crlf After adding this file, I run git add --renormalize . and git add .gitattributes, then push to remote. However, this is not overriding my global core.autocrlf setting. What I want is to push my windows line endings to Bitbucket, but what I'm getting is linux line endings in Bitbucket.
How can I force my git client to push Windows line endings for a specific repo, regardless of the user's setting for core.autocrlf?