使用Sourcetree进行Git推送时报错,不清楚错误原因(Mac端)

本地生成的SSH已经在公司gitlab中配置了,Sourcetree使用ssh路径下载的项目,文件推送的时候报错了,不知道为什么,希望有遇到过的解答一下,谢谢

报错截图

https://img.mukewang.com/5c5707840001318908000441.jpg

相关代码

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/master:refs/heads/master 
Pushing to git@*.git
remote: GitLab: Commit message does not follow the pattern '(?i:^s((OCT[sS].m)|((Mod|Fix|Add)s+[A-Za-z]+-d+s+[sS].m)|(Merge[sS])))' 
To git.*.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@git.*.git'
Completed with errors, see above


哔哔one
浏览 15860回答 2
2回答

weixin_慕标2380725

你好,找到解决的方案了吗? 我也遇到这个问题了

桃花长相依

已解决,commit时注意正则校验
打开App,查看更多内容
随时随地看视频慕课网APP