[英]How to git commit some files with CRLF and others with LF on Mac?
[英]How can I setup git to checkout some files crlf, others lf?
我有一個git存儲庫,其中包含(除其他以外) *.wse
文本文件和*.sh
文本文件。 如何設置git始終檢出*.wse
文件(帶有CRLF
行尾)和*.sh
文件(帶有LF
行尾)?
使用gitattributes文件指定例如
*.wse eol=crlf
*.sh eol=lf
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.