Last active
July 30, 2018 15:16
-
-
Save Drowze/107fa700990154d697803d6a80881eae to your computer and use it in GitHub Desktop.
update-master.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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