The open source Git project just released Git 2.51. Here is GitHub’s look at some of the most interesting features and changes introduced since last time.
As a consequence of that, you can now export your stashes to a single reference, and then push or pull it like you would a normal branch or tag. Git 2.51 makes this easy by introducing two new sub-commands to git stash to import and export, respectively. You can now do something like:
This is good:
$ git stash export --to-ref refs/stashes/my-stash $ git push origin refs/stashes/my-stash
$ git fetch origin '+refs/stashes/*:refs/stashes/*' $ git stash import refs/stashes/my-stash