# Git Aliases
alias gl="git log"
alias gco="git checkout"
alias gd="git diff"
alias gst="git status"
alias gsl="git stash list"
alias gss="git stash show"
alias gsa="git stash apply"
alias glb="git branch -a | grep -iv remote"
alias gbr="git branch -a"
alias glbnm="git branch -a | grep -iv remote| grep -iv merged-done"
alias gpr="git pull --rebase"
alias guf="git fetch upstream"
alias gpo="git remote prune --dry-run origin"
#alias gsds="for ref in `git fsck --unreachable | grep commit | cut -d' ' -f3`; do git show --summary $ref; done | less"
function testpr() {
_pr=$1 && shift
_prDir="$_pr""test"
_prBranch="PRTest/$_prDir"
cd ~
mkdir $_prBranch
git fetch upstream pull/$_pr/head:$_prBranch
gco $_prBranch
}