30.06.2009
Bash helper function to browse the git history: glog
Add this to your ~/.profile to show the git history as nice ASCII graph by calling glog:
# shows the git history as ASCII graph
function glog() {
git log --pretty=oneline --topo-order --graph --abbrev-commit $@
}
For example:



Leave it as an git alias and you'll continue to have completion on your command. Add to your .git/configure (per project) or your $HOME/.gitconfig (with some other useful stuff):
[alias]
plog = log --pretty=oneline
pplog = log --pretty=oneline --abbrev-commit
glog == log --pretty=oneline --topo-order --graph --abbrev-commit