让 Git Bisect 执行强制签出或以其他方式覆盖本地更改

AnL*_*Log 8 git git-bisect

我正在用 git 将 Unity3D 存储库一分为二,每次打开 Unity3D 编辑器检查当前版本是好还是坏时,Unity3D 都会弄脏一些文件,迫使我在继续二分之前进行硬重置。

这是因为如果我不重置,我会得到:

error: Your local changes to the following files would be overwritten by checkout:
        Platform/Assembly-CSharp.csproj
        Platform/ProjectSettings/ProjectSettings.asset
Please commit your changes or stash them before you switch branches.
Aborting
Run Code Online (Sandbox Code Playgroud)

有什么方法可以告诉 git bisect--force在其结账调用中使用,或者避免每次都重置?

kev*_*314 0

阅读源代码后,没有内置的方法可以做到这一点。

我已经提交了一个添加此功能的补丁github),希望它能成为一个版本。