在GitHub中镜像仓库,但遇到: [远程拒绝]主机->主机(预接收挂钩被拒绝)

时间:2020-07-16 15:19:58

标签: git github

我正尝试取消我的仓库,所以我可以将其设置为私有,并按照此处显示的说明进行操作:https://stackoverflow.com/a/41486339/6335029

因此,在运行git clone --bare https://github.com/{username}/{repository}之后,我随后在GitHub中删除了该存储库,然后创建了一个具有相同名称的新的空存储库。然后我做了cd {repository}.gitgit push --mirror https://github.com/{username}/{repository}

我在一个我不关心的老仓库上尝试了这个,并且一切都完美无缺。

但是,在我最关心的仓库中,我得到了以下信息:

! [remote rejected] branch_name1 -> branch_name1 (pre-receive hook declined)
! [remote rejected] branch_name2 -> branch_name2 (pre-receive hook declined)
! [remote rejected] master -> master (pre-receive hook declined)

我该如何解决?我不太在乎是否会失去其他分支机构,但我肯定会想master

0 个答案:

没有答案
相关问题