Can core.autocrlf be pushed to remote repository?
We have a centralized git repository that has a project only for Windows.
So we expect autocrlf be false.
However, somebody also works on cross platform project and set
git config --global core.autocrlf true
If they forget to change the setting for this windows git repository, then
they will commit unix ending file to it which is not expected by us.
So what i want is that: Regardless of how to set "git config --global
core.autocrlf", autocrlf are always false when clone that repo and no need
additional step to set it.
I know we can set core.autocrlf for local repo, but how it can be done for
the remote repository?
No comments:
Post a Comment