Recover unused space from GIT repository

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

 

Source: Reclaim space from unused Git repository objects by Jonathan Robson