尝试推送时出现Git错误 - 预接收钩拒绝 [英] Git error when trying to push -- pre-receive hook declined

查看:271
本文介绍了尝试推送时出现Git错误 - 预接收钩拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


$ b

  git.exe 

当我尝试推送已提交的更改时,出现以下错误: push -v - 进程originiteration1:iteration1

remote:**************************** *****************************************
到ssh:// git@mycogit/cit_pplus.git
! [remote rejected] iteration1 - > iteration1(pre-receive hook refused)
错误:无法将某些参考推送到'ssh://git@mycogit/cit_pplus.git'

发生了什么事?

解决方案

code> git@mycogit/cit_pplus.git 。



您的提交被 pre-receive hook < (这是一个用户可配置的脚本,旨在分析传入的提交并决定它们是否足够被接受进入回购)。



同时要求该人更新挂钩也是一个好主意,因此它会列出拒绝的原因。



如果维护人员是你自己的,那么看起来你在服务器端的设置有问题。请分享更多信息。


When I try and push a change I've commited, I get the following error ...

git.exe push -v --progress  "origin" iteration1:iteration1

remote: *********************************************************************
To ssh://git@mycogit/cit_pplus.git
! [remote rejected] iteration1 -> iteration1 (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@mycogit/cit_pplus.git'

What's going on?

解决方案

You should ask whoever maintains the repo at git@mycogit/cit_pplus.git.

Your commits were rejected by the pre-receive hook of that repo (that's a user-configurable script that is intended to analyze incoming commits and decide if they are good enough to be accepted into the repo).

It is also a good idea to ask that person to update the hook, so it would print the reasons for the rejection.

If the maintainer is you yourself, then it looks like you've got a problem with your setup on the server-side. Please share more information then.

这篇关于尝试推送时出现Git错误 - 预接收钩拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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