Yoel Zeldes 11/10/2016

Avoid committing junk

Read Original

The article explains a practical method to avoid committing debug prints and temporary code by marking such lines with a specific character sequence (e.g., 'xxx'). It details implementing a Git pre-commit hook that scans staged changes for these markers and blocks the commit if found, offering a way to enforce code hygiene and prevent 'junk' from reaching the remote repository.

Avoid committing junk

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser