1

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

Satish
  • 170
  • 3
  • 12

1 Answers1

2

You may take a look at pre-commit hook.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Ilya Ivanov
  • 2,379
  • 1
  • 21
  • 24
  • I also found in http://schacon.github.com/git/githooks.html. Thanks anyway. It helped. Unable to mark answer accepted on my browser. I accept the answer. – Satish Apr 12 '12 at 10:47