shallow clone depth

How many commits of history a runner fetches when it clones the repository for a job, set with GIT_DEPTH.

In more detail

New projects default to a depth of 20, which makes checkout fast. A job that needs older history, such as one that describes tags, needs a larger depth or 0 for the full history.

Related terms

Taught in

References

Certification courses