Linked Questions
67 questions linked to/from Reduce Git repository size
8
votes
1
answer
5k
views
how can I remove the unwanted objects from my repo after filter-branch --subdirectory-filter
I'm using
git filter-branch --subdirectory-filter dir/name -- --all
to build a repo that only has history relating to that dir/name. Before I do the filter, I clone the original repo (which is very ...
8
votes
1
answer
12k
views
Git repository size is larger than it should be
So I'm using git on a personal server and I had an old repo that I needed to update. I removed a bunch of old files and committed and pushed the change. I'm using a web UI for it on my server (Gitlist)...
9
votes
1
answer
3k
views
Why won’t git further reduce the repository size?
I have a repository with only one commit that has a checked out size of 95M. However, I cannot get the .git folder size below 213M. However, if I create a new repository with the same file contents, ...
4
votes
1
answer
4k
views
Git LFS is HUGE
I have a repo with lots of commits and lots of Blobs. I want to migrate to LFS because it takes significant time to clone and fetch the repo; However, when running the git lfs migrate import command, ...
6
votes
2
answers
7k
views
How can I reduce the size of the '.git' folder with a huge history of commits?
We are working in a group and committing data daily in large numbers due to which .git folder is becoming very heavy in size. And while performing the pull command on our system, it takes a lot of ...
6
votes
2
answers
2k
views
Will Git garbage-collect commit in submodule referred to by a top-level repository?
Let's say:
top.git
└── sub.git => 75fc7
The top-level Git repository top.git refers to commit 75fc7 in sub.git.
The submodule Git repository sub.git has neither branches nor tags leading to ...
1
vote
2
answers
7k
views
How can I free up space in the .git folder?
So I'm doing a project in Unity and I was curious why my project size is so large (200 GB), and then I realized there is a hidden .git folder whose size is 80 GB.
Someone told me to compress my ...
3
votes
2
answers
5k
views
unable to push to Heroku after importing thousands of records
I have a problem where I believe my sqlite3 database is too big. I imported around 100,000 records into a database and I was able to "git push" and "git push heroku." Now I probably made a mistake ...
5
votes
1
answer
2k
views
Why can the size of folder '.git' be smaller than the working directory?
According to my understanding, folder .git contains all the blob and commit objects. So it will always be larger than the files in the working directory.
How can this happen? Is it because the ...
3
votes
2
answers
2k
views
Keep '.git' folder size low while tracking very big files
I am trying to set up a local Git for a 150 GB folder. I could finally make it work, but the .git folder in that repository also grew up to a bit over 100 GB, mostly from objects.
Most of the big ...
2
votes
2
answers
2k
views
How to make my git repo smaller
I've got a git repo that I make automated commits to every day multiple times a day, but now the git repository is getting huge and taking a while to clone onto other devices. I'm wondering what the ...
3
votes
1
answer
3k
views
Git gc fails with: Error pack-objects died of signal 9
I have a large repository (Android OS instance) and I was trying to reduce the .git folder size (currently at 76G), since the build is running out of space.
I tried running the git gc --prune=now --...
0
votes
1
answer
2k
views
How to delete GIT branch completely?
My local GIT repository became very big and I'm trying to free some hard drive space. I deleted all my old branches and left only the last one.
In order to delete branches from my repository, I used ...
1
vote
1
answer
2k
views
Error: You have exceeded your disk space quota error message in git
When I try to push to my repositoty I see the following error message:
Error: You have exceeded your disk space quota.
Please upgrade your account or remove some data.
fatal: Could not read from ...
1
vote
2
answers
2k
views
How to limit the maximum history length of a git repo?
To my knowledge there is no such thing in git as a built-in setting for 'max-history-length', i.e. a maximum number of commits after which the oldest ones will start to be 'dropped' into oblivion and ...