# The rest of my fun git aliases
alias gd='git diff'
alias gpb='git checkout $(git branch | cut -c 3- | pick)'
alias gcb='git copy-branch-name'
alias gdb='git branch -D $(git branch | cut -c 3- | pick)'
alias gpri='git rebase -i $(git branch | cut -c 3- | pick)'
alias ggui='/usr/local/opt/git/libexec/git-core/git-gui &'
alias gm='git merge'
alias editgit='vim ~/.gitconfig'

# Use `hub` as our git wrapper:
#   http://defunkt.github.com/hub/
hub_path=$(which hub)
if (( $+commands[hub] ))
then
  alias git=$hub_path
fi

# The rest of my fun git aliases
alias gd='git diff'
alias gpb='git checkout $(git branch | cut -c 3- | pick)'
alias gcb='git copy-branch-name'
alias gdb='git branch -D $(git branch | cut -c 3- | pick)'
alias gpri='git rebase -i $(git branch | cut -c 3- | pick)'
alias ggui='/usr/local/opt/git/libexec/git-core/git-gui &'
alias gm='git merge'
alias editgit='vim ~/.gitconfig'

Revert "Remove alias from git"
Revert "Remove alias from git"

This reverts commit 8a3f724c07529f78ddb62ead8cc025b478104a61.
