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

Re: git bisect/checkout and changes to .gitignore

From
Chris Angelico <rosuav@gmail.com>
Date
Jun 22, 2012, 12:07 UTC
Message-ID
<CAPTjJmqw6hC_SnWiNOfcebzu4ywWkvLNOG8pbi_D+rBnQYenMw@mail.gmail.com>
In-Reply-To
<4FE44983.30209@viscovery.net>
On Fri, Jun 22, 2012 at 8:31 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> Files mentioned in .gitignore are considered garbage. But your file is
> precious, hence, you should not list it in .gitignore.
An important distinction! Thanks for the thread pointer.

The --no-overwrite-ignore flag is part of what I want. It at least gives protection against accidentally losing things (on Wednesday, I unwittingly disposed of several large binary files, and didn't even know about it until a chance discovery of directory size). Is there a way to specify that this flag always be used, even when the checkout doesn't happen on the command line but through (eg) git bisect?

Chris Angelico
Previous: Johannes SixtNext: Junio C Hamano
Message 3 of 4 in “git bisect/checkout and changes to .gitignore”
  1. Chris AngelicoJun 22, 2012
  2. Johannes SixtJun 22, 2012
  3. Chris AngelicoJun 22, 2012
  4. Junio C HamanoJun 22, 2012

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.