I have a working copy with a sparse checkout enabled. And I want to do the git rebase -i. But if I get conflict while rebasing all of the excluded from checkout files are marked as deleted and not staged for commit.
So, when I do resolve real conflicts and git add required files, I still can't do git rebase --continue due to unstaged changes. I can do git checkout -f -- <excluded files>, but it's very inconvenient.
Is there a better way to git-rebase with a sparse checkout?