Skip to content

Instantly share code, notes, and snippets.

@seantomburke
Created April 10, 2019 07:23
Show Gist options
  • Save seantomburke/cace943c18a6a9c1eeffe5dcc45b6e1e to your computer and use it in GitHub Desktop.
Save seantomburke/cace943c18a6a9c1eeffe5dcc45b6e1e to your computer and use it in GitHub Desktop.
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