Compress and cleanup a git repository

git reflog expire --expire=now --all
git gc --auto --aggressive --prune=now

From nvm/install.sh