{"thread":{"id":"44830","subject":"Git filesystem case-insensitive to case-sensitive system broken","startedAt":"2017-01-06T22:48:37Z","lastAt":"2017-01-07T13:48:19Z","messageCount":2,"participants":["Steven Robertson","Torsten Bögershausen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"308901","messageId":"CALwf_moJFqCKcc5Q=CC6aSSUAGqXEFDKrJUkdwov8shqBRK=yg@mail.gmail.com","threadId":"44830","inReplyTo":null,"subject":"Git filesystem case-insensitive to case-sensitive system broken","fromName":"Steven Robertson","fromEmail":"srtrumpetaggie@gmail.com","sentAt":"2017-01-06T21:56:36Z","receivedAt":"2017-01-06T22:48:37Z","isPatch":false,"sender":{"key":"srtrumpetaggie@gmail.com","avatar":null},"body":"Hello,\n\nI was doing development on a linux box on AWS, when we found a code\nbug that had me switching to running the code on a Mac instead. We\ndiscovered that we had accidentally named two files the same when\nlooked at case-insensitively, which made git commands afterwards\ndisplay the wrong thing. It looked like this (ignoring some things\nthat aren't relevant):\n\n$ git status\n\n\n   modified:   tests/test_system/show_19_L.txt\n\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\n$ git checkout tests/test_system/show_19_L.txt\n\n$ git status\n\n\n   modified:   tests/test_system/show_19_l.txt\n\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\n$ git checkout tests/test_system/show_19_l.txt\n\n$ git status\n\n\n   modified:   tests/test_system/show_19_L.txt\n\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\n$ diff tests/test_system/show_19_L.txt tests/test_system/show_19_l.txt\n\n$\n\n\nThose two files are different in our repo, and as such git thinks that\nwe modified one of them when we try and pull it down from github\nagain.\n\n\nThanks for looking at this!\n-- Steven\n"},{"id":"308929","messageId":"20170107134808.GA30644@tb-raspi","threadId":"44830","inReplyTo":"CALwf_moJFqCKcc5Q=CC6aSSUAGqXEFDKrJUkdwov8shqBRK=yg@mail.gmail.com","subject":"Re: Git filesystem case-insensitive to case-sensitive system broken","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2017-01-07T13:48:08Z","receivedAt":"2017-01-07T13:48:19Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On Fri, Jan 06, 2017 at 01:56:36PM -0800, Steven Robertson wrote:\n> Hello,\n> \n> I was doing development on a linux box on AWS, when we found a code\n> bug that had me switching to running the code on a Mac instead. We\n> discovered that we had accidentally named two files the same when\n> looked at case-insensitively, which made git commands afterwards\n> display the wrong thing. It looked like this (ignoring some things\n> that aren't relevant):\n> \n> $ git status\n> \n> \n>    modified:   tests/test_system/show_19_L.txt\n> \n> \n> no changes added to commit (use \"git add\" and/or \"git commit -a\")\n> \n> $ git checkout tests/test_system/show_19_L.txt\n> \n> $ git status\n> \n> \n>    modified:   tests/test_system/show_19_l.txt\n> \n> \n> no changes added to commit (use \"git add\" and/or \"git commit -a\")\n> \n> $ git checkout tests/test_system/show_19_l.txt\n> \n> $ git status\n> \n> \n>    modified:   tests/test_system/show_19_L.txt\n> \n> \n> no changes added to commit (use \"git add\" and/or \"git commit -a\")\n> \n> $ diff tests/test_system/show_19_L.txt tests/test_system/show_19_l.txt\n> \n> $\n> \n> \n> Those two files are different in our repo, and as such git thinks that\n> we modified one of them when we try and pull it down from github\n> again.\n> \n> \n> Thanks for looking at this!\n> -- Steven\n\nI assume that you are on Mac OS ?\nThis is what I would have done:\n\n- find the twin of your file:\n$  git ls-files | grep -i tests/test_system/show_19_L.txt\n\n- Let's assume it is the little brother:\n  \"tests/test_system/show_19_l.txt\"\n$  git mv tests/test_system/show_19_l.txt tests/test_system/show_19_l2.txt\n\n- Check out the original:\n$ git checkout tests/test_system/show_19_L.txt\n\n- check:\n$ git status\n\n\n\n\n"}]}