Created
June 13, 2023 08:37
-
-
Save seeker/ca0776146bac9e8db5af24928fadd566 to your computer and use it in GitHub Desktop.
Move uncommitted changes to another device
This file contains 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
# Use the below at your own risk, as you may lose changes with incorrect resets (or it will require digging in the reflog to recover commits). | |
# WIP_feature-branch contains a single commit with uncommited changes | |
# WIP branch needs to be exactly one commit ahead of the fetaure branch | |
git checkout feature-branch | |
git reset --hard origin/WIP_feature-branch | |
git reset --soft origin/feature-branch | |
git reset HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment