Update .gitignore and add empty .gitkeep files to the ‘thumbs’ and ‘cache’ directories to keep the folders, but ignore all folder/files within.