- Use
git cherry-pick -n to cherry-pick some changes to current branch, leaving them uncommitted
- Use
git restore --staged to unstage the changes
Expected:
All the changes from the cherry-pick move from staged to unstaged in git status.
Actual:
Sometimes some changes disappear from git status.
The files still have the changed contents, but git no longer recognizes the files as being changed.
It's unclear so far whether cherry-pick -n is required or if manual changes with git add will also repro.
git checkout to another branch appears to properly reset the file contents. (I've heard others complain about situations where it did not, though I don't know if they were caused by this and I haven't repro'd that.)