From 1a4db93ac141a8b5d383ec3b0b5a627eb3646dfa Mon Sep 17 00:00:00 2001 From: Albert Date: Sun, 9 Nov 2025 15:10:31 +0000 Subject: [PATCH] chore: Simplify .gitignore to exclude all .env files except .example.env MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use .env* pattern to catch all environment files - Explicitly allow .example.env with negation pattern - Removes need to list individual .env variants 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitignore | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index bd7c88b..e3a4d20 100644 --- a/.gitignore +++ b/.gitignore @@ -24,11 +24,9 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -# local env files -.env -.env*.local -.env.test -.prod.env +# local env files (exclude all except .example.env) +.env* +!.example.env # vercel .vercel