Reduce the size of histories to save the memory usage.
Update .gitconfig.