Skip to content

Instantly share code, notes, and snippets.

@archiewald
Created October 17, 2019 10:18
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 archiewald/572fe12717b997f455995fc308ea014b to your computer and use it in GitHub Desktop.
Save archiewald/572fe12717b997f455995fc308ea014b to your computer and use it in GitHub Desktop.
git stash by name

git stash push -m "message"

where "message" is your note for that stash.

In order to retrieve the stash you can use: git stash list. This will output a list like this, for example:

stash@{0}: On develop: perf-spike
stash@{1}: On develop: node v10

Then you simply use apply giving it the stash@{index}:

git stash apply stash@{1}

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment