DEV Community

Discussion on: Use Git Hooks to ease your development workflow

canro91 profile image
Cesar Aguirre

Great! I use a hook to include the task number from the branch name into commit messages

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).