Created
May 17, 2018 08:08
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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
How to share current working space with others as a patch
I created this again to make it easier to read.
For the sender:
Add all files to staging:
git add .
Create a patch file:
git stash
git stash show -p > your_patch.patch
Send the patch file to others.
For the receiver:
git apply your_patch.patch
Note: You can resolve conflicts if they occur during application.