diff --git a/pages/common/git-fsck.md b/pages/common/git-fsck.md new file mode 100644 index 00000000000000..170399258fb694 --- /dev/null +++ b/pages/common/git-fsck.md @@ -0,0 +1,17 @@ +# 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: . + +- Check the current repository: + +`git fsck` + +- List all tags found: + +`git fsck --tags` + +- List all root nodes found: + +`git fsck --root`