DEV Community

Discussion on: Use Git Hooks to ease your development workflow

Collapse
 
canro91 profile image
Cesar Aguirre

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

Collapse
 
rajhawaldar profile image
Raj Hawaldar

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