Skip to content

Instantly share code, notes, and snippets.

@Drowze
Last active July 30, 2018 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Drowze/107fa700990154d697803d6a80881eae to your computer and use it in GitHub Desktop.
Save Drowze/107fa700990154d697803d6a80881eae to your computer and use it in GitHub Desktop.
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