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

Re: git-checkout changes the index but not the checked out files?

From
Junio C Hamano <junkio@cox.net>
Date
Apr 22, 2007, 23:30 UTC
Message-ID
<7virbokmx1.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<46a038f90704221625k216864cdwb2b35bc035fac7e9@mail.gmail.com>
"Martin Langhoff" <martin.langhoff@gmail.com> writes:
Show 10 quoted lines
> # checkout an upstream branch to test that it has a bug
> $ git-checkout origin/MOODLE_18_STABLE
> $ git-status
> <shows a clean status>
>
> # switch back to our local branch to test that the bug is gone
> $ git-checkout mdl18-local
> $ git-status
> <shows a very dirty status - the index has changed but the files
> weren't updated to the contents of mdl18-local>
Shouldn't happen.  Details?
Previous: Martin LanghoffNext: Martin Langhoff
Message 2 of 8 in “git-checkout changes the index but not the checked out files?”
  1. Martin LanghoffApr 22, 2007
  2. Junio C HamanoApr 22, 2007
  3. Martin LanghoffApr 23, 2007
  4. Junio C HamanoApr 23, 2007
  5. Martin LanghoffApr 23, 2007
  6. Linus TorvaldsApr 23, 2007
  7. Martin LanghoffApr 23, 2007
  8. Uwe Kleine-KönigApr 23, 2007

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.