I want to tell git to ignore e.g. jpg files regardless of how the extension is written.
e.g.
*.jpg
should ignore
.jpg, .JPG., .Jpg
etc.
Is that possible without telling git to ignore case altogether?
I want to tell git to ignore e.g. jpg files regardless of how the extension is written.
e.g.
*.jpg
should ignore
.jpg, .JPG., .Jpg
etc.
Is that possible without telling git to ignore case altogether?
Git ignore understands glob pattern, so you can use this
You can tell git to ignore case in most situations, including in your .gitignore files. All you need is:
From a practical point of view, there may be trade-offs involved. The git-config(1) man page says:
So, you may run into trouble if you are on a case-sensitive filesystem. Your mileage may vary.