无法推送巨大的 git 提交
can't push huge git commit
我有一个巨大的 11Gb 存储库,其中包含 Android 个源代码。
我使用 "git init" 创建了 repo,然后使用 "git commit --all ." 进行了一次提交
当我发出“git push -u origin --all
”时,我无法将它推送到远程仓库
它坚持执行
"git pack-objects --all-progress-implied --revs --stdout --thin --delta-base-offset --progress"
。正如 iotop 所说,读取数据的速度仅为 1Mb/s 左右。 bitbucket 拒绝消息 "fatal: The remote end hung up unexpectedly" 并且没有任何内容被推送,因为 git 在本地完成工作。
如何禁用此打包并更进一步?
您的存储库是 way too big for Bitbucket:
In order to improve and maintain the overall performance for everyone who uses Bitbucket, we are rolling out size limits on newly-created repositories. Starting [May 30, 2014], repository size limits will be:
- Soft limit of 1 GB – In-product and email notifications will give you a heads-up that you’re approaching the limit.
- Hard limit of 2 GB – Pushing to the repository will be disabled until you’re back under the limit.
git gc
有帮助。
/s/wand$ git gc
Counting objects: 346126, done.
Compressing objects: 100% (328144/328144), done.
Writing objects: 100% (346126/346126), done.
Total 346126 (delta 67519), reused 0 (delta 0)
Removing duplicate objects: 100% (256/256), done.
Checking connectivity: 346126, done.
/s/wand$ git push -u origin --all
Counting objects: 346126, done.
Compressing objects: 100% (260625/260625), done.
Writing objects: 100% (346126/346126), 3.11 GiB | 2.62 MiB/s, done.
Total 346126 (delta 83231), reused 330414 (delta 67519)
To git@bitbucket.org:repu1sion/wand.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
我有一个巨大的 11Gb 存储库,其中包含 Android 个源代码。
我使用 "git init" 创建了 repo,然后使用 "git commit --all ." 进行了一次提交
当我发出“git push -u origin --all
”时,我无法将它推送到远程仓库
它坚持执行
"git pack-objects --all-progress-implied --revs --stdout --thin --delta-base-offset --progress"
。正如 iotop 所说,读取数据的速度仅为 1Mb/s 左右。 bitbucket 拒绝消息 "fatal: The remote end hung up unexpectedly" 并且没有任何内容被推送,因为 git 在本地完成工作。
如何禁用此打包并更进一步?
您的存储库是 way too big for Bitbucket:
In order to improve and maintain the overall performance for everyone who uses Bitbucket, we are rolling out size limits on newly-created repositories. Starting [May 30, 2014], repository size limits will be:
- Soft limit of 1 GB – In-product and email notifications will give you a heads-up that you’re approaching the limit.
- Hard limit of 2 GB – Pushing to the repository will be disabled until you’re back under the limit.
git gc
有帮助。
/s/wand$ git gc
Counting objects: 346126, done.
Compressing objects: 100% (328144/328144), done.
Writing objects: 100% (346126/346126), done.
Total 346126 (delta 67519), reused 0 (delta 0)
Removing duplicate objects: 100% (256/256), done.
Checking connectivity: 346126, done.
/s/wand$ git push -u origin --all
Counting objects: 346126, done.
Compressing objects: 100% (260625/260625), done.
Writing objects: 100% (346126/346126), 3.11 GiB | 2.62 MiB/s, done.
Total 346126 (delta 83231), reused 330414 (delta 67519)
To git@bitbucket.org:repu1sion/wand.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.