chore: stop tracking .env file #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/untrack-env-file"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Untrack
.envso local environment secrets stay out of version control.Why
.envis listed in.gitignore(line 34) but was committed earlier as an empty file, so the ignore rule never took effect. The file has since accumulated local secrets (a Forgejo API token), which must not be versioned. This runsgit rm --cached .env— the local file is kept, and since the prior tracked version was empty, no secret enters git history.Notes
This surfaced while fixing the post-rename iOS build (stale CocoaPods paths, module caches, and a zombie Metro server). Those fixes all live in the gitignored
ios//android/native dirs (regenerated fromapp.json), so they are not part of this or any commit.🤖 Generated with Claude Code