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

Why does git checkout -b touch the index?

From
David Turner <novalis@novalis.org>
Date
Oct 14, 2016, 14:35 UTC
Message-ID
<1476455756.32360.2.camel@frank>

If I do "git checkout -b fleem", with no additional flags, why does it need to rewrite the index? Or even read the index?

(this is kind of a bug report, I guess, but it's a pretty minor bug that I only noticed because I was out of hard drive space)

Next: Junio C Hamano
Message 1 of 2 in “Why does git checkout -b touch the index?”
  1. David TurnerOct 14, 2016
  2. Junio C HamanoOct 14, 2016

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.