re: What is the importance of committing mistakes? VIEW POST

re: What's really fun is when you commit your environment variables to github. Or accidently delete part of a database "DELETE FROM inventory". Mistake...

I guess, these situations are usual for beginners in IT and it's okay and not the end of the world: env variables can be "gitignored" or removed from the repo, and for a database, devs should always have backups 🙂


I've definitely done both of these things, fortunately not with anything major. 😁 The frustrating part of committing env files is that they'll remain in the commit logs even if they're ignored later still allowing potential access through the projects history. It's like cleaning up an oil spill. 😳 Lessons learned I suppose.

code of conduct - report abuse