git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git doesn't save capitalization change in file names.

From
Andrew Ardill <andrew.ardill@gmail.com>
Date
Jan 12, 2016, 03:46 UTC
Message-ID
<CAH5451=-RkyYs3UJHUvvYHSrNODzW4dmAQDHU_Jo-Wf4Oa7Dew@mail.gmail.com>
In-Reply-To
<CAMkNX-K=GQ6LkZv2PS5Pfs+v2bN1ozi9P5ZN4Z60Ba-3JtuRkg@mail.gmail.com>
On 12 January 2016 at 13:06, Daniil S <ds98s3a@gmail.com> wrote:
Show 7 quoted lines
>
> So I've now encountered this with both GitHub and BitBucket, Windows and
> Linux versions, so I'm fairly sure it's git's fault.
>
> Example: if file named "Pathfinding.java" was renamed to "PathFinding.java"
> and that change is then committed, filename won't change in repository.
>

This actually comes down to the file system you use, as git itself does keep track of the capitalisation of file names; if the file system is case insensitive (Mac OSX being the typical example) then you can run into weird issues when files change case.

For example, the following two search results:
https://stackoverflow.com/questions/10523849/changing-capitalization-of-filenames-in-git
https://ocroquette.wordpress.com/2014/07/08/git-capitalization-of-file-names-and-name-conflicts/
Regards,
Andrew Ardill
Previous: Daniil SNext: Johannes Schindelin
Message 2 of 4 in “Git doesn't save capitalization change in file names.”
  1. Daniil SJan 12, 2016
  2. Andrew ArdillJan 12, 2016
  3. Johannes SchindelinJan 12, 2016
  4. Torsten BögershausenJan 12, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.