Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git autocrlf设置为输入未按预期工作_Git_Core.autocrlf - Fatal编程技术网

git autocrlf设置为输入未按预期工作

git autocrlf设置为输入未按预期工作,git,core.autocrlf,Git,Core.autocrlf,我已经使用这一行设置了我的全局git配置 git config --global core.autocrlf input 从我所读到的内容中,我了解到无论我的存储库是在windows还是unix上,提交时的行结尾都应该转换为LF 但是,当我提交时,CRLF保持原样。 若要验证,请在提交文件后重置该文件。Duplicate?-我不这么认为,我想在提交副本后将行尾改为LF?-我不这么认为,我希望能够在提交时将行结尾更改为LF

我已经使用这一行设置了我的全局git配置

git config --global core.autocrlf input
从我所读到的内容中,我了解到无论我的存储库是在windows还是unix上,提交时的行结尾都应该转换为LF

但是,当我提交时,CRLF保持原样。

若要验证,请在提交文件后重置该文件。

Duplicate?-我不这么认为,我想在提交副本后将行尾改为LF?-我不这么认为,我希望能够在提交时将行结尾更改为LF