Reduce Git Folders' Size

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