求救:客户端git push 失败的问题
git吧
全部回复
仅看楼主
level 1
最近在centos安装了git服务器,git clone 没有问题,但是在客户端不能git push提示:提示如下:
remote: Empty compile time value given to use lib at hooks/update line 6
remote: Use of uninitialized value in require at hooks/update line 7.
remote: Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at hooks/update line 7.
remote: BEGIN failed--compilation aborted at hooks/update line 7.
remote: error: hook declined to update refs/heads/master
To [email protected]:repositories/myrepo.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '[email protected]:repositories/myrepo.git',在百度没有找到解决的方法,跟这个帖子huoyingdk.blog.51cto.com/3932829/1172004遇到一样的问题,安装也是这样安装的,查了了好多,找不到解决办法,请各位了,搞了一个多星期也没有弄出来,只能在这里求教各位,多谢老师和前辈们的指导。
在服务器上用用git clone [email protected]:myrepo.git,这个地址没有问题,在客户端,必须输入git [email protected]:repositories/myrepo.git才能完成,但是出现git push就出问题了,也不知道什么原因了,求前辈们指点了,谢谢!
2016年08月13日 13点08分 1
level 1
要把本地仓库和远程仓库连接起来吧,http://blog.csdn.net/ctrl_qun/article/details/53212722试试这篇博客,ssh配置
2016年11月18日 06点11分 3
level 1
我也遇到同样的问题 请问您最后是怎么解决的? 谢谢
2016年12月21日 07点12分 4
level 1
git push origin master
2017年01月03日 15点01分 5
level 1
最终解决了吗?我也遇到同样的问题了
2017年09月27日 02点09分 6
1