Reduce Git Folders' Size

2021/03/10

The most important thing is to avoid using binary files in your code folders. Besides, you can run these commands to manually reduce .git folders' size.

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