gpt4 book ai didi

git - 混帐错误 : You can only push your own commits in this repository

转载 作者:太空狗 更新时间:2023-10-29 13:19:48 25 4
gpt4 key购买 nike

昨天我在尝试将我的提交推送到 repo 时开始收到错误,如何解决?而且我不是这个 repo 的管理员。

remote: You can only push your own commits in this repository
remote: Commit commitName was committed by <myName> <my@users.noreply.github.com>
To ssh://bitbucket.awg.ru/repo
! [remote rejected] branchName -> branchName (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@bitbucket.awg.ru/repo'

更新

谢谢大家,问题解决了。问题出在 Bitbucket 方面,管理员更改了一些选项。现在一切正常。

最佳答案

谢谢大家,问题解决了。问题出在 Bitbucket 方面,管理员更改了一些选项。现在一切正常。

更新

根据提出问题的@Oleg。问题通常是由于 Bitbucket Hook 而发生的。此 Hook 将拒绝任何包含未由推送到服务器的用户提交的提交的推送。

解决问题:

  • 您必须对 Bitbucket 服务器中的存储库具有管理员访问权限
  • 转到服务器中的存储库
  • 然后是边栏中的⚙ 存储库设置
  • 选择 Hook
  • 禁用验证提交者 Hook
  • 你完成了

关于git - 混帐错误 : You can only push your own commits in this repository,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52886362/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com