首页 > 其他分享 >【git】解决gogs迁移后报错remote: hooks/pre-receive: line 2: /data/gogs/gogs: No such file or directory

【git】解决gogs迁移后报错remote: hooks/pre-receive: line 2: /data/gogs/gogs: No such file or directory

时间:2023-03-22 11:13:26浏览次数:46  
标签:pre git remote No receive gogs 报错

【gogs迁移后错误提示】

remote: hooks/pre-receive: line 2: /data/gogs/gogs: No such file or directory
To http://192.168.1.129:53000/yin.xia/sgs-vue.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://192.168.1.129:53000/yin.xia/sgs-vue.git'

应该是旧钩子导致的。解决方案:

进入Gitea管理员后台,在管理面板内执行同步所有仓库的钩子:

 

 

即可解决

 

标签:pre,git,remote,No,receive,gogs,报错
From: https://www.cnblogs.com/opensmarty/p/17242947.html

相关文章