Gitignore pattern to remove image transforms
Those image transform folders all start with an underscore. The following pattern should work, if you don't set up underscore folders yourself:

public/assets/**/[_]*/