From: brett l. <bre...@gm...> - 2011-08-10 16:23:39
|
On Wed, Aug 10, 2011 at 9:18 AM, Erik Vos <eri...@xs...> wrote: > Brett (or anyone else knowing the answer), > > How can I remove incorrect 'modified' markers from files in the Index that > should not be there because nothing has changed? > > I'm having this problem with 5 StockMarket.xml files. > I don't know why Git thinks these files have changed (these are shown as > modified by 'git status', but all diffs are empty). > > I tried 'git rm --cached' but that untracks the files. > > Erik. > Git will notice whitespace changes, such as tabs converted to spaces or vice versa, as well as other non-visible changes, such as a change from Unix-style carriage returns (CR) to Windows-style carriage returns (CRLF). Try doing a "git diff" and see what lines it thinks are changed. ---Brett. |