Skip to content

Instantly share code, notes, and snippets.

@ethaizone
Created May 17, 2018 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethaizone/3cfaefdaba845c337ffca8443615b337 to your computer and use it in GitHub Desktop.
Save ethaizone/3cfaefdaba845c337ffca8443615b337 to your computer and use it in GitHub Desktop.
Save working space by git stash then make patch file for apply later.
# Credit: https://stackoverflow.com/questions/3973034/export-a-stash-to-another-computer
# First just stash your working space
git stash
# Maybe you need check your stash which file that have right now.
git stash show
git stash show -p
# Create patch file from whole your stash
git stash show -p > your_patch.patch
# Later if you need to apply patch back to working space
git apply your_patch.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment