Re: Reducing Git Repository size - git-filter-repo doesn't help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





From: rsbecker@xxxxxxxxxxxxx <rsbecker@xxxxxxxxxxxxx>
Sent: Monday, January 9, 2023 8:06 AM
To: 'fawaz ahmed0' <fawazahmed0@xxxxxxxxxxx>; git@xxxxxxxxxxxxxxx <git@xxxxxxxxxxxxxxx>
Subject: RE: Reducing Git Repository size - git-filter-repo doesn't help 
 
On January 8, 2023 9:22 PM, fawaz ahmed0 wrote:
>I have this huge repo: https://github.com/fawazahmed0/currency-api#readme
>and I am trying to reduce its size.
>
>I have run filter-repo script on this repo (
>https://github.com/fawazahmed0/currency-
>api/blob/1/.github/workflows/cleanup-repo.yml ) The commits were reduced
>from 1k to 600 , but the space used is still same. (i.e size-pack: 6.47 GiB
,
>https://github.com/fawazahmed95/currency-
>api/actions/runs/3865919157/jobs/6589710845#step:5:1498 )
>
>Almost all commits of this repo were applied on partially cloned
repository: (
>https://github.com/fawazahmed0/currency-
>api/blob/1/.github/workflows/run.yml ) So I guess it had never run any git
>maintenance task in it's life.
>
>I am not sure what needs to be done to reduce it's space utilization. (
>https://docs.github.com/en/repositories/working-with-files/managing-large-
>files/about-large-files-on-
>github#:~:text=less%20than%205%20GB%20is%20strongly%20recommended )

The first thing you can try is 'git gc --aggressive' to reduce the clone
size. Github automatically does garbage collection. If this is a question of
the size of the working index, look at the sparse-checkout command.

--Randall

------------

Yes I have already tried git gc --aggressive ( https://github.com/fawazahmed0/currency-api/blob/1a1fb65703a2fc352b0ee452ce908bee545698c2/.github/workflows/cleanup-repo.yml#L78 ) . I am using sparse-checkout to manage the repository. 

The thing is the space utilized by the repository is not being reduced,  even on deleting the data using git-filter-repo script. 

Thanks,
Fawaz Ahmed





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux