DEV Community

Discussion on: What is the importance of committing mistakes?

Collapse
 
jacksonelfers profile image
Jackson Elfers

What's really fun is when you commit your environment variables to github. Or accidently delete part of a database "DELETE FROM inventory". Mistakes are part of the game but we can mitigate it in different ways.

Collapse
 
lakendary profile image
Jade Rickerts

I like MySQL (Workbench) when it comes to the DELETE FROM command. It won't allow you to delete without a where clause. Very annoying when you do want to delete all when you're not working with a production database.

Collapse
 
ilonacodes profile image
Ilona Codes • Edited

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 🙂

Collapse
 
jacksonelfers profile image
Jackson Elfers

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.