Bạn có thể nói git để bỏ qua trường hợp trong hầu hết các tình huống, kể cả trong các tập tin .gitignore của bạn. Tất cả những gì bạn cần là:
git config core.ignorecase true
Từ quan điểm thực tế, có thể có sự cân nhắc liên quan. Git-config (1) người đàn ông nói:
core.ignorecase
If true, this option enables various workarounds to enable git to
work better on filesystems that are not case sensitive, like FAT.
For example, if a directory listing finds "makefile" when git
expects "Makefile", git will assume it is really the same file, and
continue to remember it as "Makefile".
The default is false, except git-clone(1) or git-init(1) will probe
and set core.ignorecase true if appropriate when the repository is
created.
Vì vậy, bạn có thể gặp rắc rối nếu bạn đang ở trên một case-sensitive hệ thống tập tin. Số dặm của bạn có thể thay đổi.
Nguồn
2012-06-20 09:44:24
Bạn có muốn git "hoạt động" trên hệ thống tệp không phân biệt chữ hoa chữ thường hay chỉ vì mục đích bỏ qua? –
Chỉ để bỏ qua ... –