Hi, i was having problems with my repository size, it was almost 4gb big so i used the BFG Repo Cleaner to remove big files, after that i removed the whole history by creating a new branch pushing everything on this branch and replacing it with the old main branch. As shown in this video: How To Remove GIT History And Make Your Repo Smaller (youtube.com).
But the repo size is now 6.39gb big. What did i do wrong?
Hi @nicolaedamaschin and welcome to the community!
If you rewrite history in a repo, we will need to run a garbage collection so that the old references are removed and the change in size is reflected. Your repo's size went up because the repo contains both old references (before the history rewrite) and new references (after the history rewrite).
Please provide me with the last two letters of the repo name and the workspace it belongs to (or any combination of letters that will help me identify it among the ones you have access to) so that I can run a git gc on it.
Kind regards,
Theodora
Hi,
thanks for the answer!
My workspace name ist Nicolae Damaschin and my repo name starts with SpookyP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for the info!
I ran a garbage collection on the repo and its size is 2.5 GB now. Does this agree with the size of your local repo?
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome! Please feel free to reach out if you ever need anything else!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.