gpt4 book ai didi

linux - git push --mirror - 内部服务器错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:03:49 25 4
gpt4 key购买 nike

我已经使用 (GIT API) 创建了一个 git repo,并使用 git init 启动了它。 (但没有 git addgit commit 命令)。当我尝试使用 git push --mirror 时,它给出了 internal server error

我看到了以下错误(100+ ref 会给出内部服务器错误)

https://github.com/isaacs/github/issues/1253

甚至我的 repo 也有 500 多个引用。

我是否需要使用 git add 和 git commit 通过镜像命令将存储库推送到 github?

当我在本地仓库上执行 git add 和 git commit 时,我可以推送内容。

我正在使用 API 执行所有这些操作,是否可以在没有任何 git commit 或 git add 命令的情况下使用 git push --mirror?

当我转到远程仓库时,我可以看到 GitHub 快速设置页面,要求执行 git add、commit 等...

我的问题是我应该如何避免 GitHub 快速设置页面,并在不执行 git add 或 git commit 的情况下将我的内容推送到远程仓库?

最佳答案

我不明白你的内容是什么。

如果你有文件但不添加它们并且不提交,那么就 git 而言,你没有内容。

您至少需要有一个提交才能推送您的存储库,否则您什么都不会推送

关于linux - git push --mirror - 内部服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52194532/

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