AmazonS3,jgit推送一个非常大的文件

AmazonS3,jgit推送一个非常大的文件,git,amazon-web-services,amazon-s3,Git,Amazon Web Services,Amazon S3,您好,我使用AmazonS3作为我的git存储库,我有一个大约15G的大文件(Android源代码)。使用Jgit推送,我总是会得到这个堆外内存不足错误 我没有创建一个应用程序来上传这个大文件。有没有办法使用jgit上传多个部件 有什么办法可以解决这个问题吗?这行得通吗:我想我们可以在本地创建git文件,然后使用s3cmd上传到amazons3的文件夹中 谢谢 hbu@hbusz1:/mnt/data/user/ben/source$ jgit push s3 android-4.4 Count

您好,我使用AmazonS3作为我的git存储库,我有一个大约15G的大文件(Android源代码)。使用Jgit推送,我总是会得到这个堆外内存不足错误

我没有创建一个应用程序来上传这个大文件。有没有办法使用jgit上传多个部件

有什么办法可以解决这个问题吗?这行得通吗:我想我们可以在本地创建git文件,然后使用s3cmd上传到amazons3的文件夹中

谢谢

hbu@hbusz1:/mnt/data/user/ben/source$ jgit push s3 android-4.4
Counting objects:       298258
Finding sources:        100% (298258/298258)
Getting sizes:          100% (298257/298257) 
Compressing objects:     99% (7329769/7329782)
Put pack-e647569..pack: 0
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at     org.eclipse.jgit.internal.storage.file.UnpackedObject.open(UnpackedObject.java:135)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openLooseObject(ObjectDirectory.java:436)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openLooseFromSelfOrAlternate(ObjectDirectory.java:393)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:375)
at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:229)
at org.eclipse.jgit.internal.storage.pack.PackWriter.buffer(PackWriter.java:1626)
at org.eclipse.jgit.internal.storage.pack.DeltaWindow.buffer(DeltaWindow.java:408)
at org.eclipse.jgit.internal.storage.pack.DeltaWindow.delta(DeltaWindow.java:293)

如果您保留了经常更改的大型二进制文件,那么可能是git在计算这些文件的增量时遇到的问题

我将尝试在顶部文件夹中添加.gittributes,其中包含示例内容:

*.dat-增量

其中.dat是二进制文件的扩展