Browse Source

git fsck: add page (#3954)

Starbeamrainbowlabs 5 years ago
parent
commit
a8e2cd9c81
1 changed files with 17 additions and 0 deletions
  1. 17 0
      pages/common/git-fsck.md

+ 17 - 0
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: <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`