DEV Community

Discussion on: Removing a .env file from Git history

 
dailydevtips1 profile image
Chris Bongers

Unfortunately things like this (maybe not a .env file) but a hardcoded secret perhaps? might ever be committed and even pass a PR.

Mistakes are human, and agree once this happens you should notify the team and work on getting this sorted right away and make sure everyone is up to date in source again.