stash push refs fetch rstash

Source

  • TL;DR: use git-rstash from here
    • stashes are pushed as commits to refs/stashes/
    • when fetching the local refs/stashes/ will be populated and importing a stash (or all stashes) converts the commits to stashes using git stash --store
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