文章目录
  1. 1. 问题描述
  2. 2. 问题调查
  3. 3. 问题解决办法

问题描述

在使用SourceTree上传资料的时候,遇到

POST git-receive-pack (chunked) 

问题调查

从 stackoverflow 看到这样一则

This is a bug in Git; when using HTTPS it will use chunked encoding for uploads above a certain size. Those do not work. 

A trivial fix is to tell git to not chunk until some ridiculously large size value, such as: 
git config http.postBuffer 524288000 

问题解决办法

在 git/config 加入

[http] 
    postBuffer = 524288000
文章目录
  1. 1. 问题描述
  2. 2. 问题调查
  3. 3. 问题解决办法