tldr/pages/common/git-fsck.md

19 lines
369 B
Markdown
Raw Normal View History

2020-04-03 09:21:45 +01:00
# 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.
2020-04-03 09:21:45 +01:00
> 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`