how to format commit message for some people in git hook?
问题 people should add bug ID in commit message in some format,such as [BUG33] [review leader=...] ... and not every committer must have to follow this formula,i mean scm can write free in commit message. i have searched that commit-msg hook may help to implement it. any one can git me some similar hook examples 回答1: The book progit has an excellent example of these, both server-side and client-side. You can find a few examples here. One example taken from that link and adapted to your commit