git - 如何将大型虚幻引擎 4 项目上传到 GitHub?
问题描述
我正在尝试将本地存储库发布到我的 GitHub 存储库,但收到以下错误消息:
error: RPC failed; curl 55 Send failure: Connection was aborted fatal: the remote end hung up unexpectedly
这是一个使用 Git LFS 的大型 Unreal 项目。
我购买了 5 美元的 50GB 包来存储我的 LFS 日期。
请在这里查看我的问题。
据我所知,我的提交太大了,所以 GitHub 无法接受。
分解我提交的大小,以便 git 可以处理它......
我尝试了几个命令,但无济于事。
尝试1:
Nemesis03@Janek MINGW64 /g/UE4EngineBuilds/DQSWankOMate-Backup (master)
$ git repack --max-pack-size=100M -a -d
Enumerating objects: 4354, done.
Counting objects: 100% (4354/4354), done.
Delta compression using up to 12 threads
Compressing objects: 100% (4276/4276), done.
Writing objects: 100% (4354/4354), done.
Total 4354 (delta 208), reused 0 (delta 0), pack-reused 0
Removing duplicate objects: 100% (256/256), done.
尝试2:
Nemesis03@Janek MINGW64 /g/UE4EngineBuilds/DQSWankOMate-Backup (master)
$ git push origin master
Uploading LFS objects: 100% (1786/1786), 4.7 GB | 0 B/s, done.
Enumerating objects: 4354, done.
Counting objects: 100% (4354/4354), done.
Delta compression using up to 12 threads
Compressing objects: 100% (4068/4068), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
Writing objects: 100% (4354/4354), 4.00 GiB | 6.10 MiB/s, done.
Total 4354 (delta 263), reused 4299 (delta 208), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
尝试 3:
Nemesis03@Janek MINGW64 /g/somepath/myproject (master)
$ git push origin buchofnumbers2a7dfa56d91ed7e2a777b5c80fdb16abe915:master
error: The destination you provided is not a full refname (i.e.,
starting with "refs/"). We tried to guess what you meant by:
- Looking for a ref that matches 'master' on the remote side.
- Checking if the <src> being pushed (buchofnumbers2a7dfa56d91ed7e2a777b5c80fdb16abe915')
is a ref in "refs/{heads,tags}/". If so we add a corresponding
refs/{heads,tags}/ prefix on the remote side.
Neither worked, so we gave up. You must fully qualify the ref.
hint: The <src> part of the refspec is a commit object.
hint: Did you mean to create a new branch by pushing to
hint: 'buchofnumbers2a7dfa56d91ed7e2a777b5c80fdb16abe915:refs/heads/master'?
error: failed to push some refs to 'https://github.com/formatc2013/myproject.git'
尝试4:
$ git push origin bunchofnums2fc40a8da2dedf:refs/heads/master
Uploading LFS objects: 100% (1961/1961), 5.0 GB | 1.1 MB/s, done.
Enumerating objects: 5022, done.
Counting objects: 100% (5022/5022), done.
Delta compression using up to 12 threads
Compressing objects: 100% (4727/4727), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
Writing objects: 100% (5022/5022), 4.00 GiB | 6.20 MiB/s, done.
Total 5022 (delta 641), reused 4264 (delta 208), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
编辑:
尝试将 .pak .pch .ipch 和更多文件添加到 lfs:
git lfs track *.pak
ETC...
不过,这并没有减少我的提交大小。我的意思是这条线仍然说 4GBs ......
Writing objects: 100% (5022/5022), 4.00 GiB | 6.20 MiB/s, done.
我想我必须以某种方式将这个数字降低到 2 场演出......
我查看了我的本地存储库,大部分繁重的东西都在中间文件夹中,但是 AFAIK 那是你不要删除的东西......
解决方案
推荐阅读
- linux - Windows 与 Linux 上的 MarkLogic 性能
- glfw - glfwGetWindowUserPointer 有什么作用?
- asp.net-mvc - 将模型绑定到 kendogrid
- python - 使用日期和条件对条件求和的 Python
- c# - 无法将多个gridview导出到多个excel
- python - Raspberry PI:现在按住“KEY_OK”按钮。出了点问题:无法解码数据请重试。(还剩 28 次重试)
- excel - VBA 如何处理同时运行的两个计划函数?
- javascript - ESLint 与 Babel plugin-proposal-export-default-from
- azure-application-insights - kusto 查询与动态对象值没有键
- php - 标头前的 PHPMailer 脚本结束