Git · Junior · Question 61 of 75
Which file is a bad idea to commit to a Git repository?
- ✓Correct answer: A
.envfile with production passwords - 2A
README.mdwith setup steps - 3A lockfile like
package-lock.json
Explanation
Secrets in Git spread to every clone and stay in history. Commit a .env.example with placeholder values and keep real secrets in a vault or the CI settings.