Skip to content

Fix #11: stop tracking .env and venv, add .gitignore - #12

Open
xieyanran wants to merge 1 commit into
CosmiX-6:mainfrom
xieyanran:fix/gitignore-env-issue-11
Open

Fix #11: stop tracking .env and venv, add .gitignore#12
xieyanran wants to merge 1 commit into
CosmiX-6:mainfrom
xieyanran:fix/gitignore-env-issue-11

Conversation

@xieyanran

Copy link
Copy Markdown

Summary

  • Add a root .gitignore covering .env, __pycache__/, and virtualenv directories
  • Remove FoodProject/.env and the accidentally-committed venv/ (5700+ files) from git tracking (kept locally, only untracked)
  • Add FoodProject/.env.example as a template for contributors

Fixes #11

Note

The SECRET_KEY value was already exposed in git history (commit adding env var support). This PR stops further tracking but does not scrub history — recommend rotating SECRET_KEY in .env after merging.

Test plan

  • git status clean, .env and venv/ no longer tracked
  • .env.example added for local setup reference

The .env file containing SECRET_KEY was committed to the repo, along
with the entire venv/ virtualenv. Add a .gitignore covering .env,
__pycache__, and virtualenv directories, remove them from tracking,
and add FoodProject/.env.example as a template for contributors.
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.

Your .env file is visible

1 participant