Files
cheatsheet-tldr/tldr/git-fsck
2024-06-04 00:14:12 +00:00

24 lines
462 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# git fsck
> Verify the validity and connectivity of nodes in a Git repository index.
> Does not make any modifications.
> See also: `git gc` for cleaning up dangling blobs.
> More information: <https://git-scm.com/docs/git-fsck>.
- Check the current repository:
`git fsck`
- List all tags found:
`git fsck --tags`
- List all root nodes found:
`git fsck --root`