Skip to content

chore: ignore env files - #9

Merged
koryei merged 1 commit into
mainfrom
chore/ignore-env-files
Nov 27, 2026
Merged

koryei merged 1 commit into
mainfrom
chore/ignore-env-files

Conversation

@koryei

@koryei koryei commented Nov 27, 2026

Copy link
Copy Markdown
Owner

What changed

Adds a secrets block to .gitignore:

.env*
!.env.example

Why

The repo had no .env rule, so a stray .env showed up in git status as an
untracked file and could be swept in by a broad git add. The pre-commit
hook already blocks .env at commit time, but the ignore is the earlier guard:
the file never appears as a candidate in the first place.

.env.example stays trackable so a template can still be committed.

How to verify

touch .env .env.local .env.production .env.example
git check-ignore .env .env.local .env.production   # all ignored
git check-ignore .env.example                      # not ignored

What did not change

node_modules/ and build output are not added: the project is dependency-free
bash with no build step, so neither can appear.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe vibe@mistral.ai

The repo had no .env rule, so a stray .env sat in git status as an
untracked file and could be added by a broad `git add`. The pre-commit
hook blocks .env at commit time, but the ignore stops it showing up at
all, which is the earlier guard.

.env.example stays trackable so a template can be committed.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@koryei
koryei force-pushed the chore/ignore-env-files branch from 071cd2a to 41e203e Compare November 27, 2026 03:41
@koryei
koryei merged commit 38063f8 into main Nov 27, 2026
1 check passed
@koryei
koryei deleted the chore/ignore-env-files branch November 27, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant