-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repo is unnecessarily large #158
Comments
I do agree. It's not worth having an unnecessary big repo because of files that were pushed on an accident |
+1 on cleanup |
That goes over my head git-wise, but I'll be ok with doing so if possible |
having a go at it |
I just experimented with this on a fresh clone of the repo Interactive rebase to remove commits
For blob clean up, git-filter-repo from the Stack Overflow thread work effectively. From the SO discussion, this tool provides the same capabilities as git filter-branch
This results in blob set whereas before, the list of blobs was I used the original rev-list command to list blobs in repo
From here, I'm not sure how we'd pus this revised history to upstream and get forks, clones, to receive the same. |
I noticed while creating branches that it was taking a while and after a quick look it seems it's because the repo is 247mb.
I ran the following commands to list the largest blobs and it looks like some builds were accidentally committed early on:
# for example this blob was added and deleted a minute later git whatchanged --all --find-object=6507a7347f3b151262807d43af4114d287b0d446
The following is a SO comment and post that discusses techniques for removing blobs from history: https://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-from-commit-history-in-the-git-repository/61602985#61602985
As these files appeared to have been committed and pushed in error I would support their removal from the history.
The text was updated successfully, but these errors were encountered: