Created
April 4, 2018 16:01
-
-
Save Avantol13/f6ae72e1d5d90671d23fb1df38ded12c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# other stuff ... | |
# open git cola (https://git-cola.github.io/) easier | |
alias gc='git-cola &' | |
# enter friendly interactive shell easier (https://fishshell.com/) | |
alias f='fish' | |
# create and checkout new branch easier, stash stuff before if needed | |
gitbranch(){ | |
echo "=== checking out master branch ==="; | |
git checkout master; | |
echo "=== getting latest changes ==="; | |
git pull; | |
echo "=== creating new branch: $1 ==="; | |
git branch "$1"; | |
echo "=== checking out new branch: $1 ==="; | |
git checkout "$1"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment