I am working on branch feature-a, and I need to make a change to feature-b on an unrelated part of the source code. I forgot (or was too lazy) to make a secondary work tree, and edited some files that should be changed in the feature-b branch.
I could now make a worktree and rsync my uncommitted changes to the worktree. Or I could make my changes on the current branch and then git-cherry-pick/git-rebase them into the right place.
But really I just want to be able to make a commit on feature-b that reflects my edits, without actually changing the branch, switching out the contents of the main working tree, etc.
Is this possible with the Git CLI?