通过Git在Github中的公共存储库中上传时卡住了

问题描述

在init添加和提交阶段,它进行得很顺利,但是在推入阶段,它显示了错误。 Image containing error message

Uploading LFS objects:   0% (0/100),0 B | 0 B/s,done.
batch response: @KIVUOS1999 can not upload new objects to public fork KIVUOS1999/shooting
batch response: @KIVUOS1999 can not upload new objects to public fork KIVUOS1999/shooting
batch response: @KIVUOS1999 can not upload new objects to public fork KIVUOS1999/shooting
batch response: @KIVUOS1999 can not upload new objects to public fork KIVUOS1999/shooting
error: failed to push some refs to 'https://github.com/KIVUOS1999/shooting'

解决方法

您不能在叉子上使用Git LFS。

github.com上的Git LFS当前不支持将LFS对象推送到公共派生。 GitHub Enterprise确实支持这种行为。

https://github.com/git-lfs/git-lfs/issues/1906#issuecomment-276602035

,

尝试

git init
git add README.md
git commit -m "my commit"
git branch -M main
git remote add origin https://github.com/barkhayot/testingfor-.git
git push -u origin main

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...