SpinTheMic
Pro

Interview practice question

Shrinking a bloated repository history

Cloud & DevOps · Git and Version Control · Experienced

A repository has grown to 15 GB because of old binaries in history, slowing every clone. How would you shrink it safely?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Analyse with git filter-repo --analyze.
  • Plan and announce rewrite window.
  • Remove/convert to LFS with filter-repo/lfs migrate.
  • Force push, everyone re-clones.
  • Prevent with hooks and size limits.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics