Repository
Repository
2 min read
This section covers what applies to the whole repository, not to a commit or a branch: how it's put together (submodules, Git LFS, sparse checkout, shallow or partial clone), how it's stored (optimization, the SHA-256 and reftable formats), how files are read (encodings and line endings) and which Git it depends on.
- Left panel: the SUBMODULES section and, at the bottom of the list of sections, the GIT LFS and SPARSE CHECKOUT rows, which open each feature's screen.
- Repository bar: notices with an action, when they apply:
- "Submodule of ‹parent›" and Back to ‹parent›, in a submodule tab;
- Shallow clone, with Fetch more history… and Fetch full history;
- Partial clone;
- "Sparse checkout · N folders", with Configure…;
- "This repository uses Git LFS, which isn't installed", with Details…;
- "Git LFS isn't enabled in this repository", with Enable here.
- File lists: the sub (submodule) and LFS (file in Git LFS) badges.
- Tab menu and palette: Optimize repository…
- Top of the window: the warning bar when the installed Git is old.
- Submodules: adding, initializing, updating, syncing the URL, removing and the diff of a submodule.
- Git LFS and locks: enabling LFS, tracking patterns, downloading the content, cleaning up the cache and locking files.
- Sparse checkout: choosing the folders that stay in the working directory.
- Shallow clone and partial clone: the advanced clone options and how to download more history later.
- Optimize repository: diagnostics, largest files in the history, LFS candidates and Git maintenance.
- Legacy encodings and line endings: Windows-1252, Latin-1 and UTF-16 in the diff and blame; the CRLF warning before the commit.
- SHA-256 and reftable repositories: the Git 3.0 formats.
- Git version: the minimum version (2.28), the recommended one (2.40) and what's unavailable with an old Git.
Submodules, LFS, sparse checkout and optimization don't change branches, tags or HEAD. That's why these operations aren't part of Ctrl+Z: each page says how to go back, almost always with the opposite action.