http://git-scm.com/blog/2010/04/11/environment.html Env vars: GIT_DIR (--git-dir) path to the .git dir GIT_WORK_TREE (--work-tree) work tree GIT_INDEX_FILE (.git/index) staging area