DEV Community

Discussion on: A simple pre-commit hook that saves you big time!

Collapse
 
camilovietnam profile image
Camilo

I have a pre-commit hook that aborts the commit if i'm still on the dev or stg branches. Before writing it, I kept forgetting that I needed to create a new branch before writing the code.

Collapse
 
rahul_ramfort profile image
Rahul

That would be a nice catch too. Adding this to the to-do list.