【发布时间】:2020-03-18 04:21:21
【问题描述】:
我已经提交并尝试将更改推送到 repo,但它给了我这个错误。
remote: refs/heads/feature/OMT-1270-Missing-French-Translations: cd54ab15bc8d5764ab12cf6fc202fd9e7d36294b: No JIRA Issue found in commit message.
remote:
To REPONAME
! [remote rejected] feature/OMT-1270-Missing-French-Translations -> feature/OMT-1270-Missing-French-Translations (pre-receive hook declined)
error: failed to push some refs to REPONAME
我以前做过,效果很好。票也是有效的。为什么它一直抛出这个错误?
repo 是 bitBucket,原始提交消息是
git commit -m "OMT-1270 Adding missing translations"
【问题讨论】:
-
“repo”大概是你的办公室设置的东西,我们需要更多更多背景信息来提供帮助。就像哪个系统实际上拒绝了您的预接收挂钩、BitBucket、BitBucket Server(又名 Stash)、GitLab?这就是实际问题所在。
-
我想说,我们可能还需要查看提交消息。
-
是的,您没有偶然将“分支名称”与“提交消息”混淆,或者您的消息中有错误的分支名称?如果这是你的问题,this will answer the next question you're about to ask。
-
啊,我为含糊不清道歉,我将编辑原始问题!另外,我认为问题不在于 BItBucket,而在于我的本地克隆。我克隆了另一个实例,我可以从那个实例中很好地推送。
-
@Haq.H 作为旁注,要自动化一些在提交消息前添加问题编号/分支名称的过程,您可以依赖hooks。