Created
June 3, 2020 10:56
-
-
Save woffleloffle/777500f785c608d777606004391098fc to your computer and use it in GitHub Desktop.
Better git stash, see: https://codingkilledthecat.wordpress.com/2012/04/27/git-stash-pop-considered-harmful/
This file contains hidden or 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
save = !sh -c 'export PREV=$(git symbolic-ref HEAD|cut -d/ -f3-) && git checkout -b "$1" && git commit -am "$1" && git checkout "$PREV"' - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment