惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Vercel News
Vercel News
博客园_首页
Y
Y Combinator Blog
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
博客园 - Franky
Engineering at Meta
Engineering at Meta
量子位
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
N
Netflix TechBlog - Medium

博客园 - Questions张

每次打开webstorm需要重新source才能找到node,Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.74.dylib vscode 的md文件,如何设置默认用Markdown插件打开 如何清理各种Linux系统的磁盘空间以及日志文件大文件等 如何科学的通过学习词根词缀快速扩大自己的词汇量 微信如何开通wx.getPhoneNumber权限 淘宝NPM镜像地址https://registry.npm.taobao.org不可用 iPhone上使用VLC app导入本地英语听力文件(支持定时关闭sleep timer功能) idea打开properties文件中文乱码问题 如何系统的学习AI相关的知识,进入到AI行业-grok的答案 MacOs解决rz waiting to receive.**B0100000023be50 iterm的rz命令只能选择文件夹不能选择文件的问题 iTerm2 中使用 `rz` 命令无法弹出文件选择窗口,以及正确配置 CentOs8中vi以及vim编辑中文乱码问题 Centos8的镜像仓库停服无法连接切换国内镜像源 curl: (7) Failed to connect to 127.0.0.1 port 1087 after 6 ms: Couldn't connect to server 白嫖claude code的100美元额度,anyrouter中转服务 MacOs下todesk网络连接错误,无法登录 MacOs如何解决brew update卡住问题 Docker国内镜像加速配置 request to https://registry.npm.taobao.org/cyarn failed, reason: certificate has expired
git push报错remote: hooks/pre-receive:14:in require_relat...
Questions张 · 2025-04-23 · via 博客园 - Questions张

1 详细错误信息

remote: hooks/pre-receive:14:in require_relative': cannot load such file -- /var/opt/gitlab/git-data/repositories/talkilla/talkilla.git/lib/gitlab_custom_hook (LoadError)
remote:         from hooks/pre-receive:14:in <main>'
To new.gitlab.jiushiyaokuaile.cn:talkilla/talkilla.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'new.gitlab.jiushiyaokuaile.cn:talkilla/talkilla.git' 

2 原因  gitlab_custom_hook.rb文件找不到

3 解决方案,修改pre-receive文件,把gitlab_custom_hook的具体路径写对

find / -name 'gitlab_custom_hook.rb' 搜索全局找到正确的路径,写死完整路径就可以了。相对路径可能因为系统的变化导致找不到对应的路径,也可能是丢失了软连接等问题。