Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.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以签出某些文件crlf,其他文件lf?_Git_Line Endings - Fatal编程技术网

如何设置git以签出某些文件crlf,其他文件lf?

如何设置git以签出某些文件crlf,其他文件lf?,git,line-endings,Git,Line Endings,我有一个git存储库,其中包括*.wse文本文件和*.sh文本文件。如何将git设置为始终签出带有CRLF行结尾的*.wse文件和带有LF行结尾的*.sh文件 *.wse eol=crlf *.sh eol=lf

我有一个git存储库,其中包括
*.wse
文本文件和
*.sh
文本文件。如何将git设置为始终签出带有
CRLF
行结尾的
*.wse
文件和带有
LF
行结尾的
*.sh
文件

*.wse eol=crlf
*.sh eol=lf