DDEV setup with composer, uploaded images etc. getting added to git

Your software

My Mautic version is: 5.2.7
My PHP version is: 8.2.29
My Database type and version is: MariaDb 10.11

Your problem

My problem is: I used a composer create-project install of Mautic

All the images that I have uploaded are being proposed to be added to Mautic.

The default gitignore in Mautic does not cover docroot at all.

Steps I have tried to fix the problem:

I haven’t tried any. I am looking for recommendations. I guess one possibility is to add a composer post-install script that patches the .gitignore ??

I see similar concerns in this older post.