git - 通过 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'
解决方案
你不能在 fork 上使用 Git LFS。
github.com 上的 Git LFS 目前不支持将 LFS 对象推送到公共分支。GitHub Enterprise 确实支持这种行为。
https://github.com/git-lfs/git-lfs/issues/1906#issuecomment-276602035
推荐阅读
- r - R 包:我应该在 Roxygen 评论中加载我的包吗?
- nlp - TextBlob 拼写纠正需要很多时间
- python - 如何在python中进行计算?
- spring - Spring Boot 同时使用 2 个不同的 oauth 提供程序
- kubernetes - 具有 externalVaultAddr 权限的 Vault Injector 被拒绝
- groovy - 了解一个小型 groovy 脚本
- pandas - 为每个月制作新的子集
- flutter - 如何保存 TextField 输入值并将其提供给颤动的另一个屏幕?
- c - 循环内部和外部是否需要两个 scanf 或 getchar() ?
- python - 使for循环中的绘图标题成为数据框的列名