[英]Does directory name case matter while ignoring a directory in Git on windows?
Does directory name case matters while ignoring a directory in Git on windows? 在Windows上的Git中忽略目录时,目录名称大小写是否重要?
Say if bin/
and Bin/
are same in exclude file in git on windows? 说在Windows上git的排除文件中
bin/
和Bin/
是否相同?
I just tested it with Git for Windows 1.9.5 (not yet tested with Git for Windows 2.3.5 though) 我刚刚在Windows 1.9.5的Git上进行 了测试 (尽管尚未在Windows 2.3.5的Git上进行测试 )
It doesn't seem to be case sensitive: bin/xxx
and Bin/xxx
are equally ignored when bin/
or Bin/
are set in the .gitignore
on Windows. 似乎并不区分大小写:在Windows的
.gitignore
中设置bin/
或Bin/
时, bin/
bin/xxx
和Bin/xxx
被同等地忽略。
Ie, git check-ignore -v bin/xxx
would return Bin/
rule if Bin/
was in .gitignore
. 即,如果
Bin/
位于.gitignore
,则git check-ignore -v bin/xxx
将返回Bin/
规则。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.