MaGe Linux Operations
Jul 17, 2023 · Operations
How to Fix Jenkins Build Failures Caused by Large .git Repositories
When Jenkins builds stall at the git clone step due to an oversized .git directory, you can shrink the repository by running Git garbage collection, using tools like BFG Repo‑Cleaner, enabling Git LFS for large files, or configuring a shallow clone with depth 1 to fetch only the latest commit.
BFG Repo-CleanerGitGit GC
0 likes · 4 min read
