我们在gitlab的本地网络上有一个大约150 MB的存储库。
克隆此文件时,需要很长时间才能开始下载
指令:
git clone http://foobar.local/gitlab/foobar repo_deploy
Cloning into 'repo_deploy'...
- 五分钟内什么都没发生**
remote: Counting objects: 35192, done.
remote: Compressing objects: 100% (13552/13552), done.
remote: Total 35192 (delta 16644), reused 34647 (delta 16241)
Receiving objects: 100% (35192/35192), 125.49 MiB | 23.21 MiB/s, done.
Resolving deltas: 100% (16644/16644), done.
在这段时间里发生了什么?我们如何加快这一进程?
1条答案
按热度按时间cetgtptt1#
尝试清理远程存储库
git gc
文件https://www.kernel.org/pub/software/scm/git/docs/git-gc.html
来源:https://groups.google.com/forum/#!主题/报告讨论/