Question · Vibe coding with Claude Code course · Module 1: Claude Code and Cursor
Quiz: The .env file and .gitignore
Why do you put .env in the .gitignore file before the first .env file exists?
Answer options
- So that Claude Code reads the .env file faster
- So that .env lands on the server together with git push
- So that Git never saves the secrets from .env in the repository history
- So that the .env file deletes itself when the session ends
Show the answer
Correct answer:
- So that Git never saves the secrets from .env in the repository history