From: Junio C Hamano Date: Mon, 27 Apr 2015 04:39:32 GMT Subject: Re: Question about how git determines the minimum packfile for a push. Message-ID: In-Reply-To: On Sun, Apr 26, 2015 at 5:41 PM, Brad Litterell wrote: > > Is it possible git is not computing the delta correctly? > Or does git only look at the top-level commit objects to figure out what to > include in the push packfile? We walk the commit graph backwards to discover the common ancestries to minimize the network cost when fetching, but I do not think the reverse direction has such smart in the protocol. If you fetch (not "pull") first to remote tracking branches and then push, that probably will reduce the transfer, as the side that pushes is the only one that decides what objects are sent in "git push -> git receive-pack" direction.