DEV Community

Discussion on: Use Git Hooks to ease your development workflow

Collapse
rajhawaldar profile image
Raj Author

Yes, that is cool! Once, I used git hook to validate branch name according to JIRA ticket while committing code.
FYI, I got suggestion on my LinkedIn article to use $git branch --show-current instead of $(git rev-parse --abbrev-ref HEAD).