Skip to content

Instantly share code, notes, and snippets.

@buzzedword
Created October 5, 2011 19:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save buzzedword/1265472 to your computer and use it in GitHub Desktop.
Save buzzedword/1265472 to your computer and use it in GitHub Desktop.
Public Global .gitconfig
[user]
name = John Doe
email = user@email.place
[color]
ui = true
status = auto
branch = auto
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
wc = whatchanged
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
cl = log --stat --no-merges --pretty=format:'%ai: %an | %s'
# Ditch SVN folders for packaging. Brute force.
alias cleansvn='find . -name "\.svn" -type d -depth -exec rm -rf {} ";"'
# Package, download, and unpack tarballs.
alias pack='tar --exclude=".DS_STORE" -pvczf ../archive.tar.gz .'
alias pull='curl -O'
alias push='tar -zxvf'
# Useful python shortcuts for a static server and JSON prettyprinting.
alias ss='python -m SimpleHTTPServer'
alias json='python -m json.tool'
# Useful if you've installed hub-- which you should, if you use github.
alias git="hub"
# Terminal colors! Oh happy day!
export CLICOLOR=1
export LSCOLORS=exfxcxdxbxexexabagacada
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment