{"thread":{"id":"41169","subject":"Git doesn't save capitalization change in file names.","startedAt":"2016-01-12T02:06:17Z","lastAt":"2016-01-12T09:58:16Z","messageCount":4,"participants":["Daniil S","Andrew Ardill","Johannes Schindelin","Torsten Bögershausen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"275750","messageId":"CAMkNX-K=GQ6LkZv2PS5Pfs+v2bN1ozi9P5ZN4Z60Ba-3JtuRkg@mail.gmail.com","threadId":"41169","inReplyTo":null,"subject":"Git doesn't save capitalization change in file names.","fromName":"Daniil S","fromEmail":"ds98s3a@gmail.com","sentAt":"2016-01-12T02:06:17Z","receivedAt":"2016-01-12T02:06:17Z","isPatch":false,"sender":{"key":"ds98s3a@gmail.com","avatar":null},"body":"So I've now encountered this with both GitHub and BitBucket, Windows and\nLinux versions, so I'm fairly sure it's git's fault.\n\nExample: if file named \"Pathfinding.java\" was renamed to \"PathFinding.java\"\nand that change is then committed, filename won't change in repository.\n"},{"id":"275753","messageId":"CAH5451=-RkyYs3UJHUvvYHSrNODzW4dmAQDHU_Jo-Wf4Oa7Dew@mail.gmail.com","threadId":"41169","inReplyTo":"CAMkNX-K=GQ6LkZv2PS5Pfs+v2bN1ozi9P5ZN4Z60Ba-3JtuRkg@mail.gmail.com","subject":"Re: Git doesn't save capitalization change in file names.","fromName":"Andrew Ardill","fromEmail":"andrew.ardill@gmail.com","sentAt":"2016-01-12T03:46:13Z","receivedAt":"2016-01-12T03:46:13Z","isPatch":false,"sender":{"key":"andrew.ardill@gmail.com","avatar":"https://gravatar.com/avatar/da14cb7c091dd44dc6c63a4d3361b149acaf25226dc78eb4131a17b93d9b0993?d=mp&s=160"},"body":"On 12 January 2016 at 13:06, Daniil S <ds98s3a@gmail.com> wrote:\n>\n> So I've now encountered this with both GitHub and BitBucket, Windows and\n> Linux versions, so I'm fairly sure it's git's fault.\n>\n> Example: if file named \"Pathfinding.java\" was renamed to \"PathFinding.java\"\n> and that change is then committed, filename won't change in repository.\n>\n\nThis actually comes down to the file system you use, as git itself\ndoes keep track of the capitalisation of file names; if the file\nsystem is case insensitive (Mac OSX being the typical example) then\nyou can run into weird issues when files change case.\n\nFor example, the following two search results:\n\nhttps://stackoverflow.com/questions/10523849/changing-capitalization-of-filenames-in-git\n\nhttps://ocroquette.wordpress.com/2014/07/08/git-capitalization-of-file-names-and-name-conflicts/\n\nRegards,\n\nAndrew Ardill\n"},{"id":"275766","messageId":"alpine.DEB.2.20.1601120900380.2964@virtualbox","threadId":"41169","inReplyTo":"CAH5451=-RkyYs3UJHUvvYHSrNODzW4dmAQDHU_Jo-Wf4Oa7Dew@mail.gmail.com","subject":"Re: Git doesn't save capitalization change in file names.","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2016-01-12T08:02:21Z","receivedAt":"2016-01-12T08:02:21Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 12 Jan 2016, Andrew Ardill wrote:\n\n> On 12 January 2016 at 13:06, Daniil S <ds98s3a@gmail.com> wrote:\n> >\n> > So I've now encountered this with both GitHub and BitBucket, Windows\n> > and Linux versions, so I'm fairly sure it's git's fault.\n\nI highly doubt that the Linux variety of Git displays this problem, unless\nit is run on a case-insensitive file system.\n\n> > Example: if file named \"Pathfinding.java\" was renamed to\n> > \"PathFinding.java\" and that change is then committed, filename won't\n> > change in repository.\n> \n> This actually comes down to the file system you use, as git itself does\n> keep track of the capitalisation of file names; if the file system is\n> case insensitive (Mac OSX being the typical example) then you can run\n> into weird issues when files change case.\n> \n> For example, the following two search results:\n> \n> https://stackoverflow.com/questions/10523849/changing-capitalization-of-filenames-in-git\n> \n> https://ocroquette.wordpress.com/2014/07/08/git-capitalization-of-file-names-and-name-conflicts/\n\nI'd like to offer the most common work-around:\n\ngit mv Pathfinding.java Pathfinding.java.rename\ngit mv Pathfinding.java.rename PathFinding.java\n\nCiao,\nJohannes\n"},{"id":"275775","messageId":"5694CE38.5020503@web.de","threadId":"41169","inReplyTo":"alpine.DEB.2.20.1601120900380.2964@virtualbox","subject":"Re: Git doesn't save capitalization change in file names.","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2016-01-12T09:58:16Z","receivedAt":"2016-01-12T09:58:16Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 01/12/2016 09:02 AM, Johannes Schindelin wrote:\n> Hi,\n>\n> On Tue, 12 Jan 2016, Andrew Ardill wrote:\n>\n>> On 12 January 2016 at 13:06, Daniil S <ds98s3a@gmail.com> wrote:\n>>> So I've now encountered this with both GitHub and BitBucket, Windows\n>>> and Linux versions, so I'm fairly sure it's git's fault.\n> I highly doubt that the Linux variety of Git displays this problem, unless\n> it is run on a case-insensitive file system.\n>\n>>> Example: if file named \"Pathfinding.java\" was renamed to\n>>> \"PathFinding.java\" and that change is then committed, filename won't\n>>> change in repository.\n>> This actually comes down to the file system you use, as git itself does\n>> keep track of the capitalisation of file names; if the file system is\n>> case insensitive (Mac OSX being the typical example) then you can run\n>> into weird issues when files change case.\n>>\n>> For example, the following two search results:\n>>\n>> https://stackoverflow.com/questions/10523849/changing-capitalization-of-filenames-in-git\n>>\n>> https://ocroquette.wordpress.com/2014/07/08/git-capitalization-of-file-names-and-name-conflicts/\n> I'd like to offer the most common work-around:\n>\n> git mv Pathfinding.java Pathfinding.java.rename\n> git mv Pathfinding.java.rename PathFinding.java\n>\n\nSide note: That should no longer be needed: new versions of Git can \nhandle the rename these  days.\n\nHowever, when A) does the rename, pushes it to a central repo,\nB) pulls the changes, the file will stay un-renamed on the local disk.\nYou can delete all worktree files, and do a reset --hard, (at your own risk)\n"}]}