You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a repository becomes older and older. The number of commits, branches, assets stored takes a toll on git. The biggest strength of git is also its biggest flaw. It remembers everything.
Well, only until one authorizes it to forget.
Task
Follow the guide to reduce the size of .git folder in the repository (Which is now 22.7 mb) to somewhat lesser than that.
Wait, how is this a good first issue?
For people who don't have much experience with Open-source & prob git and are looking for thier first issue, housekeeping git might not be the right thing to start on xD.
I agree, I had a perspective of someone be able to learn more about git, amd how it works internally by doing this task. Reassessing, yes definitely not a good first issue
Well, I was just taking a look to see how reasonable it would be to work on this and I don't know if it is honestly. It looks like most of the large size is due to existing/previous versions of existing images.
to get the shas of the largest 150 commits. Then to get the file names,
git rev-list --objects --all | grep -f tmp.txt
It looks like most of them are presently existing files in images/ and fonts/. And while I wish I could run a command to find the exact files that could safely be removed from history, I'm not that skilled with git.
My suggestion, if low first-clone-size is at all a priority, you should gitignore all images and from previous commits, and then just store your images somewhere else other than github. Though, it seems like that's more work than it's worth. It is only the first clone after all.
As a repository becomes older and older. The number of commits, branches, assets stored takes a toll on git. The biggest strength of git is also its biggest flaw. It remembers everything.
Well, only until one authorizes it to forget.
Task
Follow the guide to reduce the size of .git folder in the repository (Which is now 22.7 mb) to somewhat lesser than that.
To help here are some great guides 1, 2,
The text was updated successfully, but these errors were encountered: