2025年8月8日 星期五

2025年8月8日 星期五

迁移服务器之后出问题,使用宝塔部署的gogs。

问题:
No such file or directory

具体日志:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master

POST git-receive-pack (9557 bytes)

remote: hooks/pre-receive: line 2: /usr/local/gogs/gogs: No such file or directory

Pushing to https://localhost/test.git

To https://localhost/test.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://localhost/test.git'
作者:李世民  创建时间:2022-08-06 22:01
最后编辑:李世民  更新时间:2025-08-08 16:02