# get the name of the branch we are on
git_prompt_info() {
    ref=$(git symbolic-ref HEAD 2> /dev/null) || return
    echo " ${ref#refs/heads/}"
}

alias gc="git commit -v"
alias gd="git diff"
alias gdw="git diff --word-diff=color"
alias gl="git log --decorate --graph --all --oneline"
alias glp="git log --decorate -p"
alias gls="git log --decorate --stat"
alias gs="git status"
alias gituncommit="git reset --soft HEAD~1"
alias gitinit="git init && touch README && git add README && git commit README -m \"Initial commit\""

# get the name of the branch we are on
git_prompt_info() {
    ref=$(git symbolic-ref HEAD 2> /dev/null) || return
    echo " ${ref#refs/heads/}"
}

alias gc="git commit -v"
alias gd="git diff"
alias gdw="git diff --word-diff=color"
alias gl="git log --decorate --graph --oneline"
alias gla="git log --decorate --graph --oneline --all"
alias glp="git log --decorate -p"
alias gls="git log --decorate --stat"
alias gs="git status"
alias gituncommit="git reset --soft HEAD~1"
alias gitinit="git init && touch README && git add README && git commit README -m \"Initial commit\""

Remove --all from gl alias; use gla instead
Remove --all from gl alias; use gla instead

git log --all can take considerably more time to run that git log.
