如何找出一个文件是否已经用 CRLF 提交了?
How to find out whether a file has been commited with CRLF?
git 文档 states:
When the file has been committed with CRLF, no conversion is done.
我如何(git)查明文件是否已使用 CRLF 提交?
git ls-files --eol <path/to/file>
将输出该信息。 (doc)
提示:
i/
表示 "index" 和
w/
表示 "working tree"
git 文档 states:
When the file has been committed with CRLF, no conversion is done.
我如何(git)查明文件是否已使用 CRLF 提交?
git ls-files --eol <path/to/file>
将输出该信息。 (doc)
提示:
i/
表示 "index" 和
w/
表示 "working tree"