git hooks 之 commit-msg

將commit-msg.sample修改成commit-msgbash 在最後添加 如下內容:日誌 # 檢測提交日誌是否符合規範 #默認以下且type:與BugID:後面不能爲空: #type: #BugID: log_message=$1 for line in `cat ${log_message} | grep -v "^$"`;do      if [ "${line%%:*}"
相關文章
相關標籤/搜索