AZ400-Q: speed up an oversized repository

A repository has years of obsolete generated output in history. Which response is safest?

  • A) Stop adding generated output, define a migration/cleanup plan, and coordinate any history rewrite as a controlled breaking change. ✓
  • B) Force-push rewritten history immediately without notice.
  • C) Delete all source branches.
  • D) Add more binary files. Answer: A. Repository cleanup can disrupt clones and references, so it needs a planned transition. Why not the others: Uncoordinated rewrites and deletion cause avoidable disruption.

git-repository-scaling · git