git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: You have local changes; cannot switch branches error question

From
Nanako Shiraishi <nanako3@lavabit.com>
Date
Dec 24, 2009, 22:59 UTC
Message-ID
<20091225075952.6117@nanako3.lavabit.com>
In-Reply-To
<76c5b8580912241425k741b24e9ie8ed92ca7cb8a659@mail.gmail.com>
Quoting Eugene Sajine <euguess@gmail.com>
> 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?

The command is telling you that it refrained to overwrite your local changes. It's not complaining. There is an excellent summary of what switching branches with 'git checkout' while you have local changes in your working tree.

http://thread.gmane.org/gmane.comp.version-control.git/77700/focus=77708
-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Previous: Eugene SajineNext: Junio C Hamano
Message 2 of 4 in “You have local changes; cannot switch branches error question”
  1. Eugene SajineDec 24, 2009
  2. Nanako ShiraishiDec 24, 2009
  3. Junio C HamanoDec 24, 2009
  4. Matthieu MoyDec 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.