如何将大型Unreal Engine 4项目上传到GitHub?

问题描述

我正在尝试将本地存储库发布到我的GitHub存储库,但是出现以下错误消息:

error: RPC Failed; curl 55 Send failure: Connection was aborted fatal: the remote end hung up unexpectedly

这是一个使用Git LFS的大型虚幻项目。

我购买了5美元的50GB数据包来存储我的LFS日期。

请参阅我的问题here

据我所知,我的承诺太大,因此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.
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等...

但是,这并没有减小我的提交大小。我的意思是这行仍然显示4GB ...

Writing objects: 100% (5022/5022),done.

我想我必须以某种方式将这个数字降低到2个演出...

我查看了我的本地存储库,其中大部分繁重的内容位于“中间”文件夹中,但是AFAIK就是您不能删除内容...

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)