1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 16:42:10 +02:00
tldr/pages/common/git-fsck.md
2020-04-03 16:21:45 +08:00

17 lines
361 B
Markdown

# git fsck
> Verify the validity and connectivity of nodes in a Git repository index.
> Does not make any modifications. See `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`