首页 > 解决方案 > 通过 Git 在 Github 的公共存储库中上传时卡住了

问题描述

在 init add 和 commit 阶段进展顺利,但在 push 阶段,它显示错误。 包含错误消息的图像

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'

标签: gitgithubrepositoryforkpublic

解决方案


你不能在 fork 上使用 Git LFS。

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

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


推荐阅读