Skip to content

Instantly share code, notes, and snippets.

@garyharan
Created February 7, 2019 16:02
Show Gist options
  • Save garyharan/cc7c4d8669e4b51bddfc1924413510a3 to your computer and use it in GitHub Desktop.
Save garyharan/cc7c4d8669e4b51bddfc1924413510a3 to your computer and use it in GitHub Desktop.
How to stash your unpushed commits
$ 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