Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Speed up git-fetch-pack?

Ping Shan April 13, 2020

We have hundreds of thousands of refs in our repo. Most of them are tags.

Whenever `git fetch` runs (even if fetching a single branch), it calls `git-fetch-pack`, which seemingly has to download entire pack of refs, which is tens of MBs in size and takes from tens of seconds to several minutes to complete for our employees working from remote locations, or even abroad.

 

Is there any way to optimize git fetch so that when fetching single branch, it does not download entire refs pack but instead only ref of the single branch being fetched?

 

Many thanks!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events