Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 git 存储库,其中包含(除其他外)*.wse文本文件和*.sh文本文件。如何设置 git 以始终检出*.wse带有CRLF行尾的*.sh文件和带有行尾的文件LF?
*.wse
*.sh
CRLF
LF
使用gitattributes文件指定例如
*.wse eol=crlf *.sh eol=lf