Skip to content

Instantly share code, notes, and snippets.

@BeauBouchard
Created August 19, 2015 18:56
Show Gist options
  • Save BeauBouchard/c1baa961dfac345e4112 to your computer and use it in GitHub Desktop.
Save BeauBouchard/c1baa961dfac345e4112 to your computer and use it in GitHub Desktop.
alias gc="git checkout"
alias gcb="git checkout -b"
alias gf="git fetch"
alias gp="git pull"
alias gs="git status"
alias gpo="git push origin"
alias addall="git add -A"
alias commitit="git commit -am"
alias pushit="git push origin head"
alias grc="git rebase --continue"
alias gra="git rebase --abort"
alias grs="git rebase --skip"
# Git branch in prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment