newageoflight / gsse-anki

Collaborative Anki deck for the General Surgical Sciences Exam
0 stars 1 forks source link

Full `git clone` is very slow, old commits have large files #2

Open langfield opened 2 years ago

langfield commented 2 years ago

A git clone of this repository is still running after 12 mintues, at only 23%, and having already used up 1 GB of disk space.

A git clone --depth=1 takes about a second, maybe less.

Consider using git-filter-repo to rewrite history and remove whatever massive files are causing the issue, or perhaps make sure CrowdAnki is only doing a shallow clone?

newageoflight commented 2 years ago

The repo used to include media files as we believed they were essential to the deck; it is an anatomy deck after all. I've only recently purged the media to save space but I can rewrite the history to scrub the media from all commits.

langfield commented 2 years ago

@newageoflight Thanks for getting back to me! It does seem like media would be useful to have in the repository, but if you're committed to keeping it separate, a history-rewrite seems like a good approach.