How To Prevent Unwanted Code From Ending Up In Your Commits

Checking the diff of the code that you're about to commit is a good habit to get into, and it's something I try do before committing any changes to the project I'm working on. Inevitably, however, debug code does slip through the cracks. I can't tell you the number of…

Read this article