Hacker News new | ask | show | jobs
by Elte 1485 days ago
Along these lines, I find a "nocommit" git hook [1] to be an absolute life saver. If for whatever reason I need to temporarily break a piece of code, I just add a `// NOCOMMIT` comment above it, and git won't let me commit if I forget to change it back.

[1] https://gist.github.com/hraban/10c7f72ba6ec55247f2d