Skip to content

Instantly share code, notes, and snippets.

View Hadevs's full-sized avatar
🌴
Freelancer

Danil Kovalev Hadevs

🌴
Freelancer
View GitHub Profile
@Hadevs
Hadevs / move-stashes.md
Created December 25, 2019 12:50 — forked from alexeds/move-stashes.md
Move your stashes from one repo to another

Move your stashes from one repo to another


This was useful for me when we created a new branch for a new major release, but were still working on our current version as well. I cloned our repo again and kept the new project on our new branch, but also wanted to get my stashes there.

Download your stashes

git stash show -p > patch

You'll have to specify your stash and name your file whatevery you want. Do this for as all your stashes, and you'll have patch files in your pwd.