Docker and CI/CD · Junior · Question 63 of 75

Should the .env file with local secrets be committed to Git?

Explanation

Secrets in Git spread to every clone and stay in history. A .env.example with placeholder values documents which variables are needed.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 63

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz