For a bleeding edge installation from GitHub
$ pip install --user git+http://github.com/return42/git2dot.git
If you are a developer fork/clone from github and run make:
git clone https://github.com/return42/git2dot
cd git2dot
make install
A Graphviz installation is required. E.g. on Deban/Ubuntu
$ sudo apt-get install graphviz
e.g. clone my git-teaching
$ git clone https://github.com/return42/git-teaching.git
$ cd git-teaching
create SVG, PNG, PDF … graph
$ git2dot giant git-teaching.svg .