通过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