尝试推送时出现Git错误

尝试推送时出现Git错误

本文介绍了尝试推送时出现Git错误 - 预接收钩拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! $ 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:iteration1remote: *********************************************************************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错误 - 预接收钩拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-13 09:20