Source
- TL;DR: use
git-rstashfrom here- stashes are pushed as commits to
refs/stashes/ - when
fetching the localrefs/stashes/will be populated andimporting 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