Skip to content

Instantly share code, notes, and snippets.

Last active Jul 30, 2018
What would you like to do?
function update-master --description "update master branch"
set __CUR_BRANCH (git rev-parse --abbrev-ref HEAD)
git checkout master
git pull
git checkout $__CUR_BRANCH
set -e __CUR_BRANCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment