In this answer, I found the following chart:
How
autocrlf
works:core.autocrlf=true: core.autocrlf=input: core.autocrlf=false: repo repo repo ^ V ^ V ^ V / \ / \ / \ crlf->lf lf->crl crlf->lf \ / \ / \ / \ / \
I do most of the development and unit testing locally on a windows box, but the main git repository is on a unix machine, and the code is used on multiple unix machines.
I don't really care how the line endings appear in my windows, but I want very much to not have any CRLF in the repository.
I'm using PyCharm, if that makes any difference.
Here's my git settings:
# ~/.gitconfig :
[user]
name = ***
email = ***
[core]
autocrlf = true
eol = lf
and
# <path-to-my-project>/.git/config :
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
autocrlf = true
[remote "origin"]
url = git+ssh://***
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
I'd think I have the correct setup, and yet I get the warning: LF will be replaced by CRLF in
My current workaround is to sftp
the files to a unix box and commit/push my changes from there, which is really annoying.
How do I fix this?