DEV Community

Discussion on: Stop Using .env Files Now!

Collapse
 
hugoblanc profile image
hugoblanc

.env files ar not supposed to be versioned.
Eventually you can have a kind of .env.example which will allow freshly cloned repository to copy and rename to .env.example to .env

Collapse
 
gregorygaines profile image
Gregory Gaines • Edited

Versioning is aimed towards production secrets / configs, not local development .env's if thats what your asking.

Regardless, versioning is useful for predictable / reproducible builds.