Created
December 21, 2011 05:03
-
-
Save twobitlabs/1504661 to your computer and use it in GitHub Desktop.
git apply-stash
This file contains 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
apply-stash = "!bash -c 'git stash list | grep $0 && git stash apply `git stash list | grep $0 | cut -d : -f 1`'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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