Source
- TL;DR: use
git-rstash
from here- stashes are pushed as commits to
refs/stashes/
- when
fetch
ing the localrefs/stashes/
will be populated andimport
ing a stash (or all stashes) converts the commits to stashes usinggit stash --store
- stashes are pushed as commits to
git rstash push-all # pushes all stashes
git rstash push 0 # pushes stash 0
git rstash fetch && git rstash import-all # fetches all stashes and populates the local stash with them