git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: jjb8256@sina.comNext: Kristoffer Haugsbakk
Message 2 of 4 in “git push error”
  1. jjb8256@sina.comMar 20, 2024
  2. Kristoffer HaugsbakkMar 20, 2024
  3. Kristoffer HaugsbakkMar 20, 2024
  4. rsbecker@nexbridge.comMar 20, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.