Created
April 10, 2019 07:23
-
-
Save seantomburke/cace943c18a6a9c1eeffe5dcc45b6e1e to your computer and use it in GitHub Desktop.
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
alias.currentbranch=rev-parse --abbrev-ref HEAD | |
alias.stupdate=!f() { BR=`git currentbranch`; git stash clear && git stash && git checkout master && git pull --rebase && git checkout $BR && git rebase master && git stash pop; }; f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment