Search code examples
gitgithubgit-svn

How to make issue# mandatory in GIT while committing


We are setting up GIT. We want to make the user mandatory to enter the issue # in the beginning of comment. LIke "Issue 3222: Fix for result variations". Is there a way to configure some sort of regular expression so that this check is made before committing?

Thanks, Satish


Solution

  • You may take a look at pre-commit hook.