【发布时间】:2021-10-14 04:29:05
【问题描述】:
我正在开发这个不和谐的机器人,我的存储库中只有 1 个分支,不需要更多。我以过去几周的方式打开了我的命令行,它说git --version 是错误的,但随后绕过它或某些东西,控制台开始工作。然后我对现有文件进行了一些调整,并简单地做了git status 以查看它是否可以添加到它的提交中。然后我做了git add *,它起作用了,然后是git commit -m "fixed negative number error",然后当我做了几个星期以来一直在做的git push origin main,它说
Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 4 threads
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 967 bytes | 483.00 KiB/s, done.
Total 11 (delta 8), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (8/8), completed with 4 local objects.
remote: fatal error in commit_refs
To https://github.com/andyforprez/exebot.git
! [remote rejected] main -> main (failure)
error: failed to push some refs to 'https://github.com/andyforprez/exebot.git'
它并没有将该文件推送到存储库,即使在 VSCode 中 M 符号就像它确实推送一样消失了。
有什么建议吗?
【问题讨论】:
-
不幸的是,这不是一个解决方案,而是某种支持,因为我遇到了同样的问题,从今天开始也是!
-
githubstatus.com 报告说 GitHub 目前遇到了一些问题。
-
我遇到了同样的问题。很高兴知道这只是一个服务器端问题
-
同样的问题。
-
所有受害者都聚集在这里:stackoverflow.com/questions/37341960/…