Skip to content

chore: ignore every .env variant, not one at a time - #16

Merged
abrichr merged 1 commit into
mainfrom
chore/gitignore-env-variants
Aug 26, 2026
Merged

chore: ignore every .env variant, not one at a time#16
abrichr merged 1 commit into
mainfrom
chore/gitignore-env-variants

Conversation

@abrichr

@abrichr abrichr commented Aug 26, 2026

Copy link
Copy Markdown
Member

.gitignore did not cover .env.bak or .env.local.

This surfaced concretely: a .env.bak containing populated OpenAI, Anthropic, and Google keys sat in a local stash in OpenAdapt since 2026-07-13. It was untracked and on no remote, so nothing leaked, but it was one git add -A from being committed.

Replaces the one-at-a-time approach with .env.* and negates .env.example so any committed template stays tracked. Verified: .env.bak is now ignored.

Part of a sweep across every repo in the workspace that had the same gap.

.gitignore did not cover .env.bak or .env.local. A .env.bak containing
populated API keys sat in a local stash in another repo since
2026-07-13, untracked and one `git add -A` from being committed.

Use a glob and negate the committed .env.example template.
@abrichr
abrichr merged commit 53347b2 into main Aug 26, 2026
4 checks passed
@abrichr
abrichr deleted the chore/gitignore-env-variants branch August 26, 2026 21: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