gpt4 book ai didi

创建新存储库时 Gitblit "this repository has a working copy and cannot receive pushes"

转载 作者:太空狗 更新时间:2023-10-29 13:41:10 24 4
gpt4 key购买 nike

正如标题,当我使用来自 gitblit 的 WebUI 工具创建一个新的存储库时,我遇到了这个问题。

我尝试了所有类型的解决方案:

  • 创建一个匿名读/写的存储库。
  • 创建一个带有身份验证读/写的存储库。

创建后,我尝试强制推送但出现此错误

请求的 URL 在访问 http://mygitserver.com/git/folder/mygitrepo.git/info/refs?service=git-receive-pack 时返回错误:403致命:HTTP 请求失败

现在我无法对我的存储库执行任何操作。

注意:所有现有的存储库都正常工作。

最佳答案

检查服务器上那个 repo 的本地配置:

git/folder/mygitrepo.git/config

查看 core.bare 是否设置为 false 或缺失(应设置为 true)。

关于创建新存储库时 Gitblit "this repository has a working copy and cannot receive pushes",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20086517/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com