git中的错误:您只能在此存储库中推送自己的提交 [英] Error in git: You can only push your own commits in this repository

查看:813
本文介绍了git中的错误:您只能在此存储库中推送自己的提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天,当我尝试将提交提交回购时,我开始收到错误,该如何解决?我不是该仓库的管理员。

Yesterday I started to recieve errors when trying to push my commit to repo, how to fix it? And I am not admin of this 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方面,管理员更改了一些选项。现在一切正常。

Update

Thanks everybody, the problem is solved. The problem was on the Bitbucket side, the admininstrator changed some options. Now everything is OK.

推荐答案

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

Thanks everybody, problem is solved. Problem was on Bitbucket side, administrator changed some options. Now everything is OK.

更新

按照@Oleg的要求题。
通常由于Bitbucket钩子而出现问题。该挂钩将拒绝任何包含未推送到服务器的用户提交的提交的推送。

As per @Oleg who asked the question. The problem in general happens because of a Bitbucket hook. This hook will reject any push that contains a commit not committed by the user who pushes to the server.

要解决此问题:


  • 您必须对Bitbucket服务器中的存储库具有管理员权限

  • 转到服务器中的存储库

  • 然后在边栏中⚙存储库设置

  • 选择挂钩

  • 禁用验证提交者钩子

  • 您已完成

  • You must have Admin access to the repository in Bitbucket server
  • Go to the repository in the server
  • Then ⚙ Repository settings in the sidebar
  • Select Hooks
  • Disable Verify Committer hook
  • You are done

这篇关于git中的错误:您只能在此存储库中推送自己的提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆