threads / bug / 34676

Re: Bug in git on windows

Subject: Re: Bug in git on windows

## tl;dr

2 messages between Aug 11, 2013 and Aug 11, 2013.

replies: 1people: 2as markdown or json

Илья Воронцов· Aug 11, 2013, 06:45 UTC · lore

git under windows doesn't check case of letters in filename. So when one rename for example images from *.JPG to *.jpg, git doesn't files in a repository so when one deliver this repo on *nix -system, old filenames preserve and this matters. It can be very confusing when some of assets in your website on server can't be loaded after deploy, though on windows all was ok. Possibly git windows shall identify changed case of symbols and suggested to rename files in commit.

Torsten Bögershausen· Aug 11, 2013, 08:49 UTC · re: Илья Воронцов · lore
On 2013-08-11 08.45, Илья Воронцов wrote:
Show 8 quoted lines
> git under windows doesn't check case of letters in filename. So when
> one rename for example images from *.JPG to *.jpg, git doesn't files
> in a repository so when one deliver this repo on *nix -system, old
> filenames preserve and this matters.
> It can be very confusing when some of assets in your website on server
> can't be loaded after deploy, though on windows all was ok.
> Possibly git windows shall identify changed case of symbols and
> suggested to rename files in commit.

It does (but this is disabled by default), you can try git config core.ignorecase false /Torsten

← back to recent threads