The **/.env.* catch-all was over-eager and swallowed .env.example too. Add a specific !**/.env.example negation so template files (which document the required vars for operators) stay tracked, while real .env.production etc. stay ignored.