DEV Community

Discussion on: Removing a .env file from Git history

Collapse
leon0824 profile image
Leon

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

Collapse
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?