snippetbashTip
git fsck — Verify the validity and connectivity of nodes in a Git repository index. Note: Does not make any mod
Viewed 0 times
thecommandconnectivityandcligit fsckvalidityverify
Problem
How to use the
git fsck command: Verify the validity and connectivity of nodes in a Git repository index. Note: Does not make any modifications. See also: git gc. More information: <https://git-scm.com/docs/git-fsck>.Solution
git fsck — Verify the validity and connectivity of nodes in a Git repository index. Note: Does not make any modifications. See also: git gc. More information: <https://git-scm.com/docs/git-fsck>.Check the current repository:
git fsckList all tags found:
git fsck --tagsList all root nodes found:
git fsck --rootShow all unreachable and dangling objects, ignore reflogs, and perform a full integrity check:
git fsck --dangling --no-reflogs --unreachable --fullCheck connectivity only (skip object integrity verification):
git fsck --connectivity-onlyCode Snippets
Check the current repository
git fsckList all tags found
git fsck --tagsList all root nodes found
git fsck --rootShow all unreachable and dangling objects, ignore reflogs, and perform a full integrity check
git fsck --dangling --no-reflogs --unreachable --fullCheck connectivity only (skip object integrity verification)
git fsck --connectivity-onlyContext
tldr-pages: common/git fsck
Revisions (0)
No revisions yet.