Skip to content

Repo is unnecessarily large  #158

Open
@m3dwards

Description

@m3dwards

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:

git rev-list --objects --all |
  git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' |
  sed -n 's/^blob //p' |
  sort --numeric-sort --key=2
# 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions