bitcoin-dev-project / bitcoin-dev-project/sim-ln

Repo is unnecessarily large

Open
#158 7 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
80
Forks
40
Avg merge
18h 49m
Merged PRs (30d)
2

Description

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:

```shell
git rev-list --objects --all |
git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' |
sed -n 's/^blob //p' |
sort --numeric-sort --key=2
```

```shell
# 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.