Using git 2.25.1 Used git sparse-checkout init/set to setup sparsecheckout.
Now I'm in situation that i need to abort merge.
Tried:
git merge --abort
Entry 'QStreams_xxx/infra/QPrism/Qpvc/gradle_pvc/gradle_pvc.iml' not uptodate. Cannot update sparse checkout. fatal: Could not reset index file to revision 'HEAD'
Tried:
git reset --hard
Same error message.
Tried to disable sparse-checkout
git sparse-checkout disable
Error:
error: cannot disable sparse-checkout: You have unstaged changes. error: additionally, your index contains uncommitted changes.
In there any way out of this ?
Thanks Boaz
The merge should be more robust with Git 2.34 (Q4 2021): various mergy operations have been prepared to work efficiently with the sparse index.
This is especially true with the new (and default) merge strategy ORT ("Ostensibly Recursive's Twin", which will be the default one with Git 2.34, Q4 2021).
See commit 516680b, commit 5d9c934, commit c0b9930, commit 6957636, commit a338063, commit ad90da7 (08 Sep 2021) by Derrick Stolee (
derrickstolee
).(Merged by Junio C Hamano --
gitster
-- in commit a16dd13, 20 Sep 2021)