# git alias gitp="git push" alias gitpl="git pull" alias gitplu="git pull upstream" alias gitom="git push origin master" alias gitf="git fetch" alias gits="git status" alias gitch="git checkout $1" alias gitd="git diff" alias gitb="git branch" alias gitr="git remote" alias gitfc="gitf && gitch" alias gita="git add" alias gitap="git add -p" alias gitrp="git checkout -p" function gitc { if [ -z "$1" ]; then git commit else git commit -m "$@" fi } function gitcp { gitc "$@" && gitp; } alias gitlg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset by %an' --abbrev-commit --date=relative"