Skip to content
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

Speed up clone by removing heavy assets from git history #110

Open
nathanshelly opened this issue Dec 30, 2020 · 0 comments
Open

Speed up clone by removing heavy assets from git history #110

nathanshelly opened this issue Dec 30, 2020 · 0 comments
Labels

Comments

@nathanshelly
Copy link
Owner

A recent clone showed that this repo's history has grown over time to ~15 MiB:

gh repo clone .files
Cloning into '.files'...
remote: Enumerating objects: 372, done.
remote: Counting objects: 100% (372/372), done.
remote: Compressing objects: 100% (194/194), done.
remote: Total 9810 (delta 209), reused 326 (delta 177), pack-reused 9438
Receiving objects: 100% (9810/9810), 14.91 MiB | 274.00 KiB/s, done.
Resolving deltas: 100% (5695/5695), done.

Running the script from this SO answer shows that most of these heavy assets either no longer exist in the repo (like images previously stored in infra/assets or fonts that have moved to https://github.com/natasha-codes/fonts) or are third-party assets that I don't need/want to store in my git tree (e.g. images from Alfred preferences).

Use the BFG repo cleaner to remove these artifacts and speed up future clones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant