{"thread":{"id":"37298","subject":"Git detects changes after new branch created and switched even though files have not been changed","startedAt":"2014-08-06T15:04:15Z","lastAt":"2014-08-06T16:02:06Z","messageCount":2,"participants":["Jared Brank","Jakub Narębski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"247327","messageId":"a2546f9109674431820b7a98f9570433@BL2PR05MB180.namprd05.prod.outlook.com","threadId":"37298","inReplyTo":null,"subject":"Git detects changes after new branch created and switched even though files have not been changed","fromName":"Jared Brank","fromEmail":"jared.brank@skaletech.com","sentAt":"2014-08-06T15:04:15Z","receivedAt":"2014-08-06T15:04:15Z","isPatch":false,"sender":{"key":"jared.brank@skaletech.com","avatar":null},"body":"Running on Windows with latest version of Git. 1.9.4. Also had this trouble with 1.8.2 but upgraded hoping it would fix the problem.\n\nWhen I do a reset on several files, it says they were successfully reverted they still show up as modified when I do a git status. In this case it's just a newline character at the end of the file. I also tried a reset -- hard and they files still show up! What the heck! Help please.\nIn trying to reproduce this, I re-cloned the git repo from the server, which was in the exact clean state before I started last time. No files have been modified after cloning, all are identical. Then, I created a new branch (totally new, not tracking a remote branch). Viola - I now have these files show up in my git status as modified. Please note that these are files that have been tracked for several previous commits.\nJust to clarify - the only command I ran to make this happen is: git checkout -b newbranch\n\nAnd GitGui shows the files as identical even when compare whitespace is turned on.\n"},{"id":"247338","messageId":"53E2517E.8020301@gmail.com","threadId":"37298","inReplyTo":"a2546f9109674431820b7a98f9570433@BL2PR05MB180.namprd05.prod.outlook.com","subject":"Re: Git detects changes after new branch created and switched even though files have not been changed","fromName":"Jakub Narębski","fromEmail":"jnareb@gmail.com","sentAt":"2014-08-06T16:02:06Z","receivedAt":"2014-08-06T16:02:06Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"W dniu 2014-08-06 17:04, Jared Brank pisze:\n> Running on Windows with latest version of Git. 1.9.4. Also had this\n> trouble with 1.8.2 but upgraded hoping it would fix the problem.\n>\n> When I do a reset on several files, it says they were successfully\n> reverted they still show up as modified when I do a git status. In\n> this case it's just a newline character at the end of the file.\n\nThe problem might be the options (gitconfig and gitattributes)\naffecting how Git deals with end-of-line characters.\n\n-- \nJakub Narębski\n"}]}