3 ms·
Interesting! I guess that works because the stash doesn't contain the changes I'm going commit now, and so it doesn't conflict (at least in simple cases). I ne
by xenomachina 9y ago
Interesting! I guess that works because the stash doesn't contain the changes I'm going commit now, and so it doesn't conflict (at least in simple cases).
I never use `--patch` (even with `git add`). I prefer to use vim-fugitive, which lets me edit a diff of the index and my working tree. It looks like being able to do something similar with stashes is a requested, but not yet implemented, feature for vim-fugitive: https://github.com/tpope/vim-fugitive/issues/236 https://github.com/tpope/vim-fugitive/issues/236
- tome 9y agoAll I can say is I use git commit --patch (and therefore `add --patch` is never even required!) git checkout --patch to selectively revert hunks, and git stash --patch to selectively stash. I couldn't be happier with this workflow!