Recover unused space from GIT repository

$ git reflog expire --all --expire=now
$ git gc --prune=now

Source: http://jnrbsn.com/2011/03/reclaim-space-from-unused-git-repository-objects by Jonathan Robson