# Caching Git Pull

2 messages from 2020-09-14 to 2020-09-14. Participants: Benson Muite, Son Luong Ngoc.
Thread: https://gitlist.dev/t/54235

## Benson Muite, 2020-09-14 05:27

Subject: Caching Git Pull
Message-ID: <492d0f93-578a-cf71-4d62-140471b33ae6@emailplus.org>
URL: https://gitlist.dev/e/492d0f93-578a-cf71-4d62-140471b33ae6%40emailplus.org

```
Hi,

Is there some way I can add functionality for caching git pull to allow 
continuation of a partially complete pull from a git repository to a 
local machine. As an example the command wget -c allows continuation of 
a partially complete download. This would be very helpful for large 
commits which fail with:

fatal: the remote end hung up unexpectedly
fatal: early EOF

Regards,
Benson

```

## Son Luong Ngoc, 2020-09-14 08:39

Subject: Re: Caching Git Pull
Message-ID: <90AE4B78-36E8-40B6-9D7C-E198E3004941@gmail.com>
URL: https://gitlist.dev/e/90AE4B78-36E8-40B6-9D7C-E198E3004941%40gmail.com
In-Reply-To: <70DB3786-CB8E-4D82-9774-439AB2A79A8D@gmail.com>

```
Note: resend with plain-text format

Hi Benson,

> On Sep 14, 2020, at 07:27, Benson Muite <benson_muite@emailplus.org> wrote:
> 
> Hi,
> 
> Is there some way I can add functionality for caching git pull to allow continuation of a partially complete pull from a git repository to a local machine. 

I believe there has been some recent works toward this direction with Packfile Uri feature [1] [2] where a packfile could be uploaded to
CDN and then advertised by the hosting remote so that clients who enabled the feature can download the big part of the clone
via CDN instead.

[1]: https://github.com/git/git/blob/master/Documentation/technical/packfile-uri.txt
[2]: https://public-inbox.org/git/cover.1591821067.git.jonathantanmy@google.com/

However I don't think any major Git hosting provider (Github, Bitbucket, Gitlab etc...) have started using this feature.

> As an example the command wget -c allows continuation of a partially complete download. This would be very helpful for large commits which fail with:
> 
> fatal: the remote end hung up unexpectedly
> fatal: early EOF
> 
> Regards,
> Benson

I will cc Jonathan Tan(author) to discuss more regarding path toward resumable git clone.

Cheers,
Son Luong.
```
