git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git checkout branch puzzle
@ 2010-05-01 17:55 Chris.Cheney
  2010-05-02  4:59 ` Jeff King
  0 siblings, 1 reply; 7+ messages in thread
From: Chris.Cheney @ 2010-05-01 17:55 UTC (permalink / raw)
  To: git

I have been using msysgit (curently 1.7.0.2.msysgit.0) for about 18 months 
and thought that I had managed to understand most things. However, the 
following sequence has me baffled:

a) on branch 'master', git status shows that the working directory is clean

b) git checkout HEAD^ gives the usual moan about moving to a head which 
isn't a local branch

c) git checkout master followed by git status gives "changed but not 
updated" and a list of "modified" files

d) git reset --hard does not change the situation

I suspect the situation arose as a result of 'mv'ing some files without 
using git mv, but the resulting state above seems unreasonable.

Any explanation of (c)/(d) would be appreciated.

As a result, I have started using git add -A rather than got add . (and 
wonder why it isn't documented as the default thing to do).

TIA for any light on this.

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

end of thread, other threads:[~2010-05-06 20:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-01 17:55 git checkout branch puzzle Chris.Cheney
2010-05-02  4:59 ` Jeff King
2010-05-02  8:58   ` Chris.Cheney
2010-05-02 20:09     ` Chris.Cheney
2010-05-03  6:40       ` Jeff King
2010-05-03  8:06         ` Chris.Cheney
2010-05-06 20:30           ` Chris.Cheney

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).