-
-
Save rdsngit/cfcae94de1a34b23650ef3b68b9ec0fd to your computer and use it in GitHub Desktop.
How to stash your unpushed commits
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
$ git status | |
5 commits pending | |
$ git reset --soft HEAD~5 # where 5 is the number of commits you saw in the `git status` | |
$ git stash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment