Skip to content

Instantly share code, notes, and snippets.

@gnthibault
Created March 16, 2022 14:22
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 gnthibault/bb90948ea5c3519c5c43d037a5418b03 to your computer and use it in GitHub Desktop.
Save gnthibault/bb90948ea5c3519c5c43d037a5418b03 to your computer and use it in GitHub Desktop.
# From https://stackoverflow.com/a/64716636/2697831
#A stash entry is a special ref that points to a commit. So you can simply tag the commit.
git stash push -m "debug"
# after "git stash", tag the last entry
git tag debug stash@{0}
# later use the tag name
git stash apply debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment