2017-04-10 22 views
0

我git從gitlab服務器克隆項目,該項目有一個大文件大約90Mb, git命令將被凍結,我已經嘗試了幾次,但得到相同的結果。凍結狀態如下: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

Nerver恢復 –

+0

嘗試'SET GIT_CURL_VERBOSE = 1'和'SET GIT_TRACE = 1',然後重新運行git命令,這將輸出很多調試信息,看看你是否發現了任何可能解釋它的東西。 –

回答

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 URL,那並不重要。 Check instead your own local ssh config