Skip to content

Instantly share code, notes, and snippets.

@woffleloffle
Created June 3, 2020 10:56
Show Gist options
  • Save woffleloffle/777500f785c608d777606004391098fc to your computer and use it in GitHub Desktop.
Save woffleloffle/777500f785c608d777606004391098fc to your computer and use it in GitHub Desktop.
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