Skip to content

Instantly share code, notes, and snippets.

@Avantol13
Created April 4, 2018 16:01
Show Gist options
  • Save Avantol13/f6ae72e1d5d90671d23fb1df38ded12c to your computer and use it in GitHub Desktop.
Save Avantol13/f6ae72e1d5d90671d23fb1df38ded12c to your computer and use it in GitHub Desktop.
# 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