git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
FAfawaz ahmed0 <fawazahmed0@hotmail.com>
Date
Jan 10, 2023, 08:18 UTC
Message-ID
<PH7PR12MB7795ED45E989E2EDE2364049F1FF9@PH7PR12MB7795.namprd12.prod.outlook.com>
In-Reply-To
<CABPp-BE_FLFL3-s3936zWWfaORBPim14A-oqVNo+8gx+CMduHA@mail.gmail.com>
> Note that git-filter-repo only changes the size of the _local_ repo.
   You made an additional clone within GitHub Actions, and then
   filter-repo shrinks *that* clone.  Even if you had deleted all copies
   of older files you don't want anymore locally (which is suspect as I
   noted above), your force pushing isn't going to shrink the size of the
   repo on the server (i.e. on GitHub) since there are pull requests in
   your repo that GitHub won't allow you to overwrite via force-push, and
   those pull requests still hold on to the old history.

Thanks for your inputs. Yes, the issue is with the GitHub itself (I have verified it locally), so when I force push this reduced sized repo to Github and reclone it back the size gets back to 4+ GB. So what do you suggest?

I have already contacted Github few days back, and they have cleared the cache etc for this repo.(but that did not reduce any size). ( I will try contacting them again)
> Why are you cleaning up in a CI task?
Task is yearly cleanup, to keep repo under 5GB limit as recommened by Github  ( To avoid receiving email from GitHub : https://github.com/whosonfirst-data/whosonfirst-data/issues/1507 )
> Could you provide that number and how you got it, so we can see what you're measuring
I was checking the repo size here: https://github.com/settings/repositories   (it takes around 1 hour for github to show updated size after any commit)
Previous: Elijah NewrenNext: Elijah Newren
Message 6 of 11 in “Reducing Git Repository size - git-filter-repo doesn't help”
  1. fawaz ahmed0Jan 9, 2023
  2. rsbecker@nexbridge.comJan 9, 2023
  3. fawaz ahmed0Jan 9, 2023
  4. Erik Cervin EdinJan 9, 2023
  5. Elijah NewrenJan 10, 2023
  6. fawaz ahmed0Jan 10, 2023
  7. Elijah NewrenJan 11, 2023
  8. Elijah NewrenJan 11, 2023
  9. fawaz ahmed0Jan 11, 2023
  10. fawaz ahmed0Jan 12, 2023
  11. Elijah NewrenJan 12, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.