Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (29 sloc) 808 Bytes
#TODO get zgit
# Enable bash completion for git
# # This allows git-completion to work properly
autoload bashcompinit
#source `brew prefix`/etc/git-completion.d
if [[ -x `which git` ]];
alias g='git'
# alias gb='git branch -a -v'
alias gc='git commit'
alias gd='git diff'
# alias gf='git fetch'
# alias gr='git-rebase'
alias gst='git status'
function git-scoreboard()
git log | grep '^Author' | sort | uniq -ci | sort -r
function github-url()
git config remote.origin.url | sed -En 's/git(@|:\/\/)|\/)(.+)\/(.+).git/https:\/\/\/\3\/\4/p'
# Seems to be the best OS X jump-to-github alias from
function github-go()
open $(github-url)