# Get to the build sooner: Git pre-checkout, LFS caching, and submodules

DevFeed: [Get to the build sooner: Git pre-checkout, LFS caching, and submodules](<https://devfeed.tech/articles/get-to-the-build-sooner-git-pre-checkout-lfs-caching-and-submodules-122846.md>)

Original publisher: [Read original article](<https://avrea.com/blog/git-checkout-acceleration>)

Author: Hannu Valtonen

Published: 2026-10-16T09:00:00Z

Content type: article

Language: en

Sources: [Avrea Blog](<https://devfeed.tech/sources/avrea-blog.md>)

Topics: [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Git](<https://devfeed.tech/topics/git.md>), [Submodules](<https://devfeed.tech/topics/submodules.md>), [Dependency management](<https://devfeed.tech/topics/dependency-management.md>), [build times](<https://devfeed.tech/topics/build-times.md>)

Tags: [acceleration](<https://devfeed.tech/tags/acceleration.md>), [actions](<https://devfeed.tech/tags/actions.md>), [all](<https://devfeed.tech/tags/all.md>), [app](<https://devfeed.tech/tags/app.md>), [asset](<https://devfeed.tech/tags/asset.md>), [assets](<https://devfeed.tech/tags/assets.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [avr](<https://devfeed.tech/tags/avr.md>), [benefit](<https://devfeed.tech/tags/benefit.md>), [boundary](<https://devfeed.tech/tags/boundary.md>), [build](<https://devfeed.tech/tags/build.md>), [caching](<https://devfeed.tech/tags/caching.md>), [can](<https://devfeed.tech/tags/can.md>), [checkout](<https://devfeed.tech/tags/checkout.md>), [ci](<https://devfeed.tech/tags/ci.md>), [downloads](<https://devfeed.tech/tags/downloads.md>), [git](<https://devfeed.tech/tags/git.md>), [large](<https://devfeed.tech/tags/large.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [submodules](<https://devfeed.tech/tags/submodules.md>)

## AI overview

Avrea speeds CI startup by preparing Git objects before checkout, caching Git LFS downloads near its runners, and preloading pinned submodule commits. `actions/checkout` remains in place and reuses prepared objects; unavailable mirrors and cache misses fall back to GitHub. Git Checkout Acceleration and Git LFS Cache are off by default, while submodule preparation defaults to root-only. Teams can choose top-level or recursive submodules; private submodules require GitHub App authorization, a ready mirror, and the credentials ordinary checkout needs. Root and submodule pre-checkout support GitHub repositories on Linux and macOS; Windows uses normal checkout, and LFS downloads inside containers are not intercepted.

## Source excerpt

Avrea prepares Git repositories before checkout, caches large LFS downloads, and preloads submodules so CI can get to the build sooner.