depth
Summary
Section titled “Summary”depth'' passes --depth to git clone, limiting the number of commits downloaded.
It reduces clone time and disk usage for large repositories when history is not needed.
Syntax / Usage
Section titled “Syntax / Usage”zi ice depth"1" # shallow clone, only the latest commitzi ice depth"5" # last 5 commitsDetails
Section titled “Details”A shallow clone omits most of the commit history. depth"1" is the most common value
and is the standard recommendation for themes like powerlevel10k.
Does not work with snippets.
Examples
Section titled “Examples”# powerlevel10k recommends depth 1zi ice depth"1"zi light romkatv/powerlevel10kCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”- Shallow clones may cause issues with plugins that use
git describeor inspect commit history during their setup.
See Also
Section titled “See Also”- ver
- cloneopts