Re: git push error
- From
Kristoffer Haugsbakk <code@khaugsbakk.name>
- Date
- Mar 20, 2024, 08:45 UTC
- Message-ID
- <6f4d8a42-341b-40e0-97f4-157d053c0ff2@app.fastmail.com>
- In-Reply-To
- <65fa8d7a469967.62182104.7cc8fd91@m1.mail.sina.com.cn>
On Wed, Mar 20, 2024, at 08:17, jjb8256@sina.com wrote:
Show 16 quoted lines
> Hi: > git push 时发现如下报错,尝试无法修改,请帮忙,谢谢! > > $ git push > Enumerating objects: 9, done. > Counting objects: 100% (8/8), done. > Delta compression using up to 8 threads > Compressing objects: 100% (5/5), done. > Writing objects: 100% (5/5), 701 bytes | 233.00 KiB/s, done. > Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) > remote: The gitlab-shell hooks have been migrated to Gitaly, see > https://gitlab.com/gitlab-org/gitaly/issues/1226 > To http://10.11.15.10/ks-rd-fw/git-train-2022.git > ! [remote rejected] develop -> develop (pre-receive hook declined) > error: failed to push some refs to > 'http://10.11.15.10/ks-rd-fw/git-train-2022.git'
The pre-receive hook on the server failed. That means that whatever you pushed is wrong according to that script.
See `man githooks`.
-- Kristoffer