git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* You have local changes; cannot switch branches error question
@ 2009-12-24 22:25 Eugene Sajine
  2009-12-24 22:59 ` Nanako Shiraishi
  2009-12-24 23:32 ` Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: Eugene Sajine @ 2009-12-24 22:25 UTC (permalink / raw
  To: git; +Cc: Eugene Sajine

First of all Merry Christmas and Happy New Year to everybody! I wish
Git to move to global dominance during next year even faster then it
does now;)

My question is related to the fact that most of the time when i have
some local file changes Git is switching branches OK. But from time to
time in some repos I'm hitting this error and I cannot figure out why
it suddenly starts to complain about it?

For example in one of my repos I somehow got to a state when I have
three files modified, and when I'm trying to switch branches it
complains about one of them being changed locally, so it refuses to
switch branch

OTOH i have tried many different scenarios in another repo to leave
some uncommitted staged or not staged  changes and switch branches and
same version of git does that just fine. (v 1.6.5.6).

So, what is correct behavior - do not switch or switch branches when
there are uncommitted changes?

Thanks,
Eugene

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

end of thread, other threads:[~2009-12-25 14:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-24 22:25 You have local changes; cannot switch branches error question Eugene Sajine
2009-12-24 22:59 ` Nanako Shiraishi
2009-12-24 23:32 ` Junio C Hamano
2009-12-25 14:32   ` Matthieu Moy

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).