DEV Community

Hasan TEZCAN
Hasan TEZCAN

Posted on

How can I share a git stash?

Create a Patch:

You can create a patch file from your stash and send it to your colleague.
Run

git stash show -p stash@{0} > my_stash.patch
Enter fullscreen mode Exit fullscreen mode

to create a patch file.

Send the my_stash.patch file to your colleague.

Your colleague can apply the patch with

git apply my_stash.patch.
Enter fullscreen mode Exit fullscreen mode

Top comments (0)