thi*_*eev 4 git github gitlab gitea
大家好。
我正在尝试为我为客户分叉的各种开源项目完整地镜像 Git 存储库,以便进行自定义。
这些是我正在遵循的步骤:
$ git clone --mirror https://github.com/pathto/project.git
$ cd project.git
$ git remote set-url --push origin git@git.localserver.net:pathto/project
$ git push --mirror
Run Code Online (Sandbox Code Playgroud)
最后一步我得到了![远程拒绝]一切。(预接收挂钩被拒绝)
我已经在 Gitea 上设置了存储库,并且安装了 SSH 密钥。所有内容都会上传,但上传完成后,所有内容都会出现错误。
我的最后一步是建立一个每日 cron,从 github/gitlab 获取数据,然后推送到本地服务器。