
Your CI Pipeline Downloads 500MB of Screenshots Every Build
I added screenshot automation to our docs pipeline last month. Worked great. Fifteen screenshots, all in sync with the live product. Then I checked the repo size. $ git count-objects -vH size-pack: 487.00 MiB Half a gigabyte. For a documentation project. What happened Every git push with updated screenshots stores the full binary diff. PNG files don't compress well. Fifteen screenshots at ~200KB each, captured on every CI run, and Git faithfully stores every single version forever. Fresh clones were taking 4 minutes. CI runners were burning bandwidth. A colleague on hotel wifi gave up and just didn't pull for a week. The fix: Git LFS Git Large File Storage replaces binary files with lightweight pointers in your repo. The actual images live in a separate store. git lfs install git lfs track "*.png" git lfs track "*.jpg" git add .gitattributes git commit -m "Track images with Git LFS" Before: size-pack: 487.00 MiB After migrating existing history: git lfs migrate import --include = "*.pn
Continue reading on Dev.to DevOps
Opens in a new tab


