git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 18:12 UTC

git bisect stuck - --force flag required for checkout

From
DDDevste Devste <devstemail@gmail.com>
Date
Dec 21, 2023, 10:47 UTC
Message-ID
<CANM0SV3SEF28QJ2V0Q9ydp8yDbL8TDc1m871oxOB=UtwF1TtxQ@mail.gmail.com>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue) add file Foo.txt to .git and commit add some commits with any changes to other files, as this is needed for reproduction run: git config core.ignorecase false rename Foo.txt to foo.txt and commit add some commits with any changes to other files, as this is needed for reproduction run: git bisect start && git bisect bad eventually, when running "git bisect good" (or bad) you will get an error:

>error: The following untracked working tree files would be overwritten by checkout:
>Foo.php

Anything else you want to add: git bisect good/bad needs to have support for a "--force" flag, which is passed to the git checkout it runs internally At the moment git bisect cannot be used on Windows, as there is no way to continue the bisect from here. Changing the "git config core.ignorecase true" temporarily is not an option, as this will introduce a variety of other bugs, which, on Windows, eventually will require you to completely delete and reclone the repo, as Windows file paths are case-insensitive

[System Info] git version: git version 2.39.1.windows.1 cpu: i686 built from commit: b03dafd9c26b06c92d509a07ab01b01e6d0d85ee sizeof-long: 4 sizeof-size_t: 4 shell-path: /bin/sh feature: fsmonitor--daemon uname: Windows 10.0 compiler info: gnuc: 12.2 libc info: no libc information available

[Enabled Hooks]
Next: brian m. carlson
Message 1 of 2 in “git bisect stuck - --force flag required for checkout”
  1. Devste DevsteDec 21, 2023
  2. brian m. carlsonDec 21, 2023

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.