git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git detects changes after new branch created and switched even though files have not been changed
@ 2014-08-06 15:04 Jared Brank
  2014-08-06 16:02 ` Jakub Narębski
  0 siblings, 1 reply; 2+ messages in thread
From: Jared Brank @ 2014-08-06 15:04 UTC (permalink / raw)
  To: git@vger.kernel.org

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.

When 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.
In 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.
Just to clarify - the only command I ran to make this happen is: git checkout -b newbranch

And GitGui shows the files as identical even when compare whitespace is turned on.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-06 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06 15:04 Git detects changes after new branch created and switched even though files have not been changed Jared Brank
2014-08-06 16:02 ` Jakub Narębski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).