Skip to content

Instantly share code, notes, and snippets.

@twobitlabs
Created December 21, 2011 05:03
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 twobitlabs/1504661 to your computer and use it in GitHub Desktop.
Save twobitlabs/1504661 to your computer and use it in GitHub Desktop.
git apply-stash
apply-stash = "!bash -c 'git stash list | grep $0 && git stash apply `git stash list | grep $0 | cut -d : -f 1`'"
@twobitlabs
Copy link
Author

Add this to your .gitconfig to apply a stash based on its message. For example:

git stash save dev-config
git apply-stash dev-config

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