S
S
szQocks2021-06-16 01:11:04
git
szQocks, 2021-06-16 01:11:04

Why is the .env file not pushed to git?

I started the project in git, all the files were pushed except .env.local , this file was registered in .gitignore , and in git status it was clear that this file was supposedly ready to send everything. How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-06-16
@szQocks

It's just not a problem.
The git should be present only .env.examplewith examples of settings.
The rest .envof the files, firstly, contain critical data (at least logins, passwords from db), and secondly, they depend on the environment and may differ on prod, dev, and for each programmer in the team locally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question