Is it possible to configure core.autocrlf=false for a specific submodule? I do not have push access for the submodule, so I need to set it from outside.
Asked
Active
Viewed 536 times
1 Answers
1
Do not put --global should be enough
git config core.autocrlf false
But if the question is how do do it and share it in your repo to be available for git clone, you can't. But you can use some tricks. Thare tones of answer on SO on how to do it here for why you can't and there on how you can go closer about what you want. hope that will help.

Novy
- 1,436
- 1
- 14
- 26
-
This will change the setting locally only, right? I need the setting to be persistent across clones. – Apr 12 '18 at 17:20
-
You have to copy it in a readme file or just a share a config file that the user must copy his own config directory. You can't share config file in a repository for security matter we can guess. – Novy Apr 12 '18 at 19:33