I've inherited a Magento 2 codebase and the .gitignore
file matches the one in the Magento 2.3 repo.
I downloaded the latest copy of the database and the /pub/media
folder from the live site for my local dev environment so I could get as close a match as possible.
However, I now have a lot of directories in /pub/media
that Git is picking up as untracked files.
I feel like I should be gitignore-ing these directories as they aren't currently in the codebase, but I don't want to do anything that will upset the live site on deployment.
These are the directories being picked up by Git:
/pub/media/amasty/
/pub/media/amlabel/
/pub/media/back/
/pub/media/cache/
/pub/media/css_secure/
/pub/media/custom_options/
/pub/media/email/
/pub/media/gbu0/
/pub/media/images/
/pub/media/js/
/pub/media/khxc/
/pub/media/klevu_images/
/pub/media/mbimages/
/pub/media/meigee/
/pub/media/og_image/
/pub/media/xmlconnect/
It looks like most of these have been created by/for the theme that has been used.
Should I add these to the gitignore?