git-push错误(与正则表达式不匹配)


remote: Start Git Hooks Checking                        [FAILED]
remote: Error: Deny by project hooks setting 'default': message of commit '33e095953ba928dc6e8dba98967c325fa8f5ba13' (see it by 'git log') does not match the regular-expression '(RR|IR|US|BUG|VUL)(d{13,14})|(TX|WI|DTS)(d{13})|(DTS[a-zA-Z0-9]{19})|(SR)(d{14})|(#)(d+)'.
To ssh://xxxx.com:1111/xxxx/xxxx.git
! [remote rejected]   feature_install_arch -> feature_install_arch (pre-receive hook declined)

发生了什么事?

您的repo对其接受的提交消息有一些限制。您需要匹配一些正则表达式(RR|IR|US|BUG|VUL)(d{13,14})|(TX|WI|DTS)(d{13})|(DTS[a-zA-Z0-9]{19})|(SR)(d{14})|(#)(d+)看见https://regex101.com/r/N7mU1w/1比赛,看看什么比赛。

询问您的合作者那里的逻辑到底是什么,并查看以前的提交消息以获取示例。要在committer之后更改提交消息,请参阅以下答案

最新更新