DEV Community

Discussion on: Removing a .env file from Git history

leon0824 profile image

As long as a repo is private or local, a .env file could be commit into the repo.

dailydevtips1 profile image
Chris Bongers Author

I would also urge to not do that.
What happens when you decide to introduce someone else, sell the project or code gets leaked?