-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
website repo is very big #47
Comments
I cancelled the clone and used |
Oh wow. You're not kidding, that's ridiculous! I think I know what's going on: until recently, we've had all past release binaries as part of this repo (~80mb per release per OS) and once it was getting too big I removed them, but I bet they're still in the git history! I'll find a way to cut them out of the history, and if all else fails, I'll just nuke the git history for this repo. Thanks for reporting this! I likely wouldn't have found this for a while, since I already have a clone on my machine. |
There's two options that come to mind:
Option 1: Binaries begoneIf you want to rip out all the old binaries then I'd suggest using: git-filter-repo. You can use it to automatically rewind each commit back to the first commit, then replay each commit with a few changes that you specify as CLI options. That could be things like:
Option 2: Binaries yeetIf you still want to keep the binary files but not keep them inside the repo, you can use git-lfs-migrate. This will upload the binaries up to a git-lfs storage host and replace the binary files in your repo with tiny pointer files that contain a link in the file on the git-lfs storage host. |
I had no idea that git-lfs-migrate was a thing! I think that's exactly what we need here. Thanks for the tip! |
Just thought I'd mention git cloning the website seems like it will download > 1GB of data! I'm writing this as it clones. Is this really necessary? It's very surprising.
The text was updated successfully, but these errors were encountered: