我从gitlab服务器git克隆一个项目,该项目有一个大约90Mb的大文件, git命令将被冻结,我已经尝试了几次但得到了相同的结果。冻结状态如下:
Cloning into 'GPU-HOOK'...
remote: Counting objects: 29, done.
remote: Compressing objects: 100% (27/27), done.
Receiving objects: 24% (7/29), 41.99 MiB | 430.00 KiB/s
如何处理?
答案 0 :(得分:0)
检入GitLab server configuration file (gitlab.yml
) max_size
的价值:
## Git settings
# CAUTION!
# Use the default values unless you really know what you are doing
git:
bin_path: /usr/bin/git
# The next value is the maximum memory size grit can use
# Given in number of bytes per git object (e.g. a commit)
# This value can be increased if you have very large commits
max_size: 20971520 # 20.megabytes
# Git timeout to read a commit, in seconds
timeout: 10
您也可以在Web服务器前端(例如NGiNX)中使用类似的设置
但如果您使用的是ssh网址,则无关紧要。 Check instead your own local ssh config