git hook 提交记录 格式控制

客户端钩子 commit-msg 用于在本地合入的时候,检查提交记录是否知足规范git #!/bin/sh MSG=`awk '{printf("%s",$0)}' $1` if [[ ! ${MSG} =~ ^\[story/bug\ name\]:\ {0,1}[[:digit:]]{1,5}.+\[story/bug\ url\]:\ {0,1}https{0,1}://.+\[memo
相关文章
相关标签/搜索