Skip to content

Instantly share code, notes, and snippets.

@Drowze
Last active Jul 30, 2018
Embed
What would you like to do?
update-master.fish
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
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment