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

Re: git read-tree doesn't accept tree-ish

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 23, 2021, 19:27 UTC
Message-ID
<xmqq5yvwq7w5.fsf@gitster.g>
In-Reply-To
<CAMJzOtz_h0iEL1VQCFvvLzw3XnL+qM=f+BvkmsTU=ps+0VA7RA@mail.gmail.com>
Nikita Bobko <nikitabobko@gmail.com> writes:
> `git checkout <hash> -- <path>` also doesn't work in my case because
> if any file is removed in `<hash>` but not in my HEAD then `git
> checkout` doesn't remove the file in my HEAD
Look for "--no-overlay" option in "git checkout", perhaps?
Previous: Elijah NewrenNext: Nikita Bobko
Message 6 of 7 in “git read-tree doesn't accept tree-ish”
  1. Nikita BobkoAug 23, 2021
  2. Elijah NewrenAug 23, 2021
  3. Jeff KingAug 23, 2021
  4. Nikita BobkoAug 23, 2021
  5. Elijah NewrenAug 23, 2021
  6. Junio C HamanoAug 23, 2021
  7. Nikita BobkoAug 23, 2021

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.