1

My project is too big (9.9GB) because it has many commited versions of a ~400MB tar file. I was suggested to use filter-repo (https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html). But I have to export the project.

I started the Export process and after I received a link by email (also there is a Download button on the export page). But when I try to download the exported file, I get this message: "The file containing the export is not available yet; it may still be transferring. Please try again later." How am I supposed to download the file? Please don't tell me that it cannot be exported because it is too big and there is no available space...

The download link is valid only for 24h. Maybe the export process is taking more than 24h... Any hint to reduce the repo size?

Thank you

Luis

Adam Marshall
  • 6,369
  • 1
  • 29
  • 45
LuisGomes
  • 11
  • 1

1 Answers1

0

But I have to export the project.

You should not have to export a GitLab project to apply git filter-repo.
You should only git clone the GitLab repository locally.

Once locally cloned:

As usual, this kind of command rewrites history, so make sure to notify any collaborator.

The OP LuisGomes also mention Reduce repository size with git-filter-repo.

That thread mentions the workaround:

I had to create a new empty project and copy all the files from the big project to it.
If you need, you can change the name and the path of the old project so the new project can have the original ones, and you won’t have to change other source codes.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Hello, Adam. I followed your instructions and used filter-repo to strip the blob related to the 400MB tgz file. But I need the last tgz, so I put it back. After doing `git push --mirror https://gitlab/myproject`, I saw that the project on Gitlab was taking the same 9.9GB space. WHat am I doing wrong? Thanks for your post. PS. I am still trying to install git-sizer on CentOS 7. – LuisGomes Sep 28 '21 at 12:46
  • @LuisGomes Not sure who "Adam" is, but can you check with your private Gitlab admins, or with GitLab support, what still takes so much space? Maybe it is the reflog, which still references old commits no longer part of your new branches. – VonC Sep 28 '21 at 12:51
  • Sorry, VonC. Adam was the guy who posted the first reply. I posted this question at the Gitlab forum first, but I got no answer so far. Thank you, VonC. – LuisGomes Sep 28 '21 at 18:18
  • @LuisGomes OK, I will follow https://forum.gitlab.com/t/project-export-never-completes/58809. – VonC Sep 28 '21 at 21:31
  • I tried to export the repository in order to shrink its size. If the export is not necessary, I can skip it. The thing is that I still can't see any size reducing even if the push command works. There is another user wit the same problem. I will follow him too.'https://forum.gitlab.com/t/reduce-repository-size-with-git-filter-repo/39862' – LuisGomes Sep 29 '21 at 18:44
  • @LuisGomes Do you see a reduction in size in the local repository, where you have applied the `git filter-repo` command? – VonC Sep 29 '21 at 20:28
  • I think my post with the answer to your question and other comments was deleted, @VonC – LuisGomes Nov 12 '21 at 19:27
  • @LuisGomes I have seen it indeed. But it should have been added to your question (by editing it) since answers are reserved for answers. – VonC Nov 12 '21 at 20:52
  • @LuisGomes I would recommend checking this case out with the GitLab support, to see if they can identify why the repository is still so large. – VonC Nov 12 '21 at 20:58