3 ms·
Problem with stashing is that you then need to redo the work of staging afterward.
by bringtheaction 9y ago
Problem with stashing is that you then need to redo the work of staging afterward.
- maccam94 9y agoyou can --keep-index to avoid stashing it, and then make an additional stash. If you have modifications within the same file it'll complain about conflicts though, so on the second sash you'll have to `git stash show -p | git apply -R` and then drop the stash, which is super clunky.
- zaarn 9y agoYou only need to git stash pop and the staging area is back as it where, there is no need to redo the work of staging.
- __david__ 9y agoStashing saves/restores the staging area so you shouldn't need to redo anything.