CINXE.COM
Git - git-fsck Documentation
<!DOCTYPE html> <html lang="en"> <head> <meta charset='utf-8'> <meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Git - git-fsck Documentation</title> <link href="/favicon.ico" rel='shortcut icon' type='image/x-icon'> <link rel="stylesheet" href="/application.min.css"> <script src="/js/modernizr.js"></script> <script src="/js/modernize.js"></script> </head> <body id="documentation"> <div class="inner"> <header> <a href="/"><img src="/images/logo@2x.png" width="110" height="46" alt="Git" /></a> <span id="tagline"></span> <script type="text/javascript"> const taglines = [ "fast-version-control", "everything-is-local", "distributed-even-if-your-workflow-isnt", "local-branching-on-the-cheap", "distributed-is-the-new-centralized" ]; var tagline = taglines[Math.floor(Math.random() * taglines.length)]; document.getElementById('tagline').innerHTML = '--' + tagline; </script> <form id="search" action="/search/results"> <input id="search-text" name="search" placeholder="Type / to search entire site…" autocomplete="off" type="text" /> </form> <div id="search-results"></div> </header> </div> <div class="inner"> <div id="content-wrapper"> <div tabindex="1" class="sidebar-btn"></div> <aside class="sidebar" id="sidebar"> <nav> <ul> <li> <a href="/about">About</a> <ul> </ul> </li> <li> <a href="/doc" class="active">Documentation</a> <ul class="expanded"> <li> <a href="/docs" class="active">Reference</a> </li> <li> <a href="/book">Book</a> </li> <li> <a href="/videos">Videos</a> </li> <li> <a href="/doc/ext">External Links</a> </li> </ul> </li> <li> <a href="/downloads">Downloads</a> <ul > <li> <a href="/downloads/guis">GUI Clients</a> </li> <li> <a href="/downloads/logos">Logos</a> </li> </ul> </li> <li> <a href="/community">Community</a> </li> </ul> </nav> </aside> <div id="content"> <div id='reference-version'> <a class="dropdown-trigger" id="reference-languages-trigger" data-panel-id="l10n-versions-dropdown" href="#"> English ▾</a> <div class='dropdown-panel right' id='l10n-versions-dropdown'> <header>Localized versions of <strong>git-fsck</strong> manual</header> <ol class='reference-previous-versions'> <li> <a href="/docs/git-fsck"><span class="version">English</span> </a> </li> <li> <a href="/docs/git-fsck/fr"><span class="version">Français</span> </a> </li> <li> <a href="/docs/git-fsck/pt_BR"><span class="version">Português (Brasil)</span> </a> </li> <li> <a href="/docs/git-fsck/zh_HANS-CN"><span class="version">简体中文</span> </a> </li> </ol> <footer> Want to read in your language or fix typos?<br/> <a href="https://github.com/jnavila/git-manpages-l10n">You can help translate this page</a>. </footer> </div> <a class="dropdown-trigger" id="reference-topics-trigger" data-panel-id="topics-dropdown" href="#">Topics ▾</a> <div class='dropdown-panel right' id='topics-dropdown'> <div class='three-column'> <div class='column-left'> <h3 class='setup'>Setup and Config</h3> <ul class='unstyled'> <li> <a href="/docs/git"> git </a> </li> <li> <a href="/docs/git-config"> config </a> </li> <li> <a href="/docs/git-help"> help </a> </li> <li> <a href="/docs/git-bugreport"> bugreport </a> </li> <li> <a href="/doc/credential-helpers"> Credential helpers </a> </li> </ul> <h3 class='projects'>Getting and Creating Projects</h3> <ul class='unstyled'> <li> <a href="/docs/git-init"> init </a> </li> <li> <a href="/docs/git-clone"> clone </a> </li> </ul> <h3 class='snapshotting'>Basic Snapshotting</h3> <ul class='unstyled'> <li> <a href="/docs/git-add"> add </a> </li> <li> <a href="/docs/git-status"> status </a> </li> <li> <a href="/docs/git-diff"> diff </a> </li> <li> <a href="/docs/git-commit"> commit </a> </li> <li> <a href="/docs/git-notes"> notes </a> </li> <li> <a href="/docs/git-restore"> restore </a> </li> <li> <a href="/docs/git-reset"> reset </a> </li> <li> <a href="/docs/git-rm"> rm </a> </li> <li> <a href="/docs/git-mv"> mv </a> </li> </ul> <h3 class='branching'>Branching and Merging</h3> <ul class='unstyled'> <li> <a href="/docs/git-branch"> branch </a> </li> <li> <a href="/docs/git-checkout"> checkout </a> </li> <li> <a href="/docs/git-switch"> switch </a> </li> <li> <a href="/docs/git-merge"> merge </a> </li> <li> <a href="/docs/git-mergetool"> mergetool </a> </li> <li> <a href="/docs/git-log"> log </a> </li> <li> <a href="/docs/git-stash"> stash </a> </li> <li> <a href="/docs/git-tag"> tag </a> </li> <li> <a href="/docs/git-worktree"> worktree </a> </li> </ul> <h3 class='sharing'>Sharing and Updating Projects</h3> <ul class='unstyled'> <li> <a href="/docs/git-fetch"> fetch </a> </li> <li> <a href="/docs/git-pull"> pull </a> </li> <li> <a href="/docs/git-push"> push </a> </li> <li> <a href="/docs/git-remote"> remote </a> </li> <li> <a href="/docs/git-submodule"> submodule </a> </li> </ul> </div> <div class='column-middle'> <h3 class='inspection'>Inspection and Comparison</h3> <ul class='unstyled'> <li> <a href="/docs/git-show"> show </a> </li> <li> <a href="/docs/git-log"> log </a> </li> <li> <a href="/docs/git-diff"> diff </a> </li> <li> <a href="/docs/git-difftool"> difftool </a> </li> <li> <a href="/docs/git-range-diff"> range-diff </a> </li> <li> <a href="/docs/git-shortlog"> shortlog </a> </li> <li> <a href="/docs/git-describe"> describe </a> </li> </ul> <h3 class='patching'>Patching</h3> <ul class='unstyled'> <li> <a href="/docs/git-apply"> apply </a> </li> <li> <a href="/docs/git-cherry-pick"> cherry-pick </a> </li> <li> <a href="/docs/git-diff"> diff </a> </li> <li> <a href="/docs/git-rebase"> rebase </a> </li> <li> <a href="/docs/git-revert"> revert </a> </li> </ul> <h3 class='debugging'>Debugging</h3> <ul class='unstyled'> <li> <a href="/docs/git-bisect"> bisect </a> </li> <li> <a href="/docs/git-blame"> blame </a> </li> <li> <a href="/docs/git-grep"> grep </a> </li> </ul> <h3 class='email'>Email</h3> <ul class='unstyled'> <li> <a href="/docs/git-am"> am </a> </li> <li> <a href="/docs/git-apply"> apply </a> </li> <li> <a href="/docs/git-format-patch"> format-patch </a> </li> <li> <a href="/docs/git-send-email"> send-email </a> </li> <li> <a href="/docs/git-request-pull"> request-pull </a> </li> </ul> <h3 class='external'>External Systems</h3> <ul class='unstyled'> <li> <a href="/docs/git-svn"> svn </a> </li> <li> <a href="/docs/git-fast-import"> fast-import </a> </li> </ul> <h3 class='server-admin'>Server Admin</h3> <ul class='unstyled'> <li> <a href="/docs/git-daemon"> daemon </a> </li> <li> <a href="/docs/git-update-server-info"> update-server-info </a> </li> </ul> </div> <div class='column-right'> <h3 class='guides'>Guides</h3> <ul class='unstyled'> <li> <a href="/docs/gitattributes"> gitattributes </a> </li> <li> <a href="/docs/gitcli"> Command-line interface conventions </a> </li> <li> <a href="/docs/giteveryday"> Everyday Git </a> </li> <li> <a href="/docs/gitfaq"> Frequently Asked Questions (FAQ) </a> </li> <li> <a href="/docs/gitglossary"> Glossary </a> </li> <li> <a href="/docs/githooks"> Hooks </a> </li> <li> <a href="/docs/gitignore"> gitignore </a> </li> <li> <a href="/docs/gitmodules"> gitmodules </a> </li> <li> <a href="/docs/gitrevisions"> Revisions </a> </li> <li> <a href="/docs/gitsubmodules"> Submodules </a> </li> <li> <a href="/docs/gittutorial"> Tutorial </a> </li> <li> <a href="/docs/gitworkflows"> Workflows </a> </li> <li> <a href="/docs/git#_guides"> All guides... </a> </li> </ul> <h3 class='admin'>Administration</h3> <ul class='unstyled'> <li> <a href="/docs/git-clean"> clean </a> </li> <li> <a href="/docs/git-gc"> gc </a> </li> <li> <a href="/docs/git-fsck"> fsck </a> </li> <li> <a href="/docs/git-reflog"> reflog </a> </li> <li> <a href="/docs/git-filter-branch"> filter-branch </a> </li> <li> <a href="/docs/git-instaweb"> instaweb </a> </li> <li> <a href="/docs/git-archive"> archive </a> </li> <li> <a href="/docs/git-bundle"> bundle </a> </li> </ul> <h3 class='plumbing'>Plumbing Commands</h3> <ul class='unstyled'> <li> <a href="/docs/git-cat-file"> cat-file </a> </li> <li> <a href="/docs/git-check-ignore"> check-ignore </a> </li> <li> <a href="/docs/git-checkout-index"> checkout-index </a> </li> <li> <a href="/docs/git-commit-tree"> commit-tree </a> </li> <li> <a href="/docs/git-count-objects"> count-objects </a> </li> <li> <a href="/docs/git-diff-index"> diff-index </a> </li> <li> <a href="/docs/git-for-each-ref"> for-each-ref </a> </li> <li> <a href="/docs/git-hash-object"> hash-object </a> </li> <li> <a href="/docs/git-ls-files"> ls-files </a> </li> <li> <a href="/docs/git-ls-tree"> ls-tree </a> </li> <li> <a href="/docs/git-merge-base"> merge-base </a> </li> <li> <a href="/docs/git-read-tree"> read-tree </a> </li> <li> <a href="/docs/git-rev-list"> rev-list </a> </li> <li> <a href="/docs/git-rev-parse"> rev-parse </a> </li> <li> <a href="/docs/git-show-ref"> show-ref </a> </li> <li> <a href="/docs/git-symbolic-ref"> symbolic-ref </a> </li> <li> <a href="/docs/git-update-index"> update-index </a> </li> <li> <a href="/docs/git-update-ref"> update-ref </a> </li> <li> <a href="/docs/git-verify-pack"> verify-pack </a> </li> <li> <a href="/docs/git-write-tree"> write-tree </a> </li> </ul> </div> </div> </div> <a class="dropdown-trigger" id="reference-versions-trigger" data-panel-id="previous-versions-dropdown" href="#"> Latest version ▾ </a> <span class="light d-flex">git-fsck last updated in 2.47.0</span> <div class='dropdown-panel left' id='previous-versions-dropdown'> <header>Changes in the <strong>git-fsck</strong> manual</header> <ol class='reference-previous-versions'> <li> <a href="/docs/git-fsck/2.47.0"><span class="version">2.47.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">10/06/24</em> </a> </li> <li class="no-change"><span>2.46.0 → 2.46.2 no changes</span></li> <li class="no-change"><span>2.45.2 no changes</span></li> <li> <a href="/docs/git-fsck/2.45.1"><span class="version">2.45.1</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">04/29/24</em> </a> </li> <li class="no-change"><span>2.45.0 no changes</span></li> <li class="no-change"><span>2.44.2 no changes</span></li> <li> <a href="/docs/git-fsck/2.44.1"><span class="version">2.44.1</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">04/19/24</em> </a> </li> <li class="no-change"><span>2.44.0 no changes</span></li> <li class="no-change"><span>2.43.5 no changes</span></li> <li> <a href="/docs/git-fsck/2.43.4"><span class="version">2.43.4</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">04/19/24</em> </a> </li> <li class="no-change"><span>2.43.1 → 2.43.3 no changes</span></li> <li> <a href="/docs/git-fsck/2.43.0"><span class="version">2.43.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">11/20/23</em> </a> </li> <li class="no-change"><span>2.42.3 no changes</span></li> <li> <a href="/docs/git-fsck/2.42.2"><span class="version">2.42.2</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">04/19/24</em> </a> </li> <li class="no-change"><span>2.42.0 → 2.42.1 no changes</span></li> <li class="no-change"><span>2.41.2 no changes</span></li> <li> <a href="/docs/git-fsck/2.41.1"><span class="version">2.41.1</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">04/19/24</em> </a> </li> <li class="no-change"><span>2.41.0 no changes</span></li> <li class="no-change"><span>2.40.3 no changes</span></li> <li> <a href="/docs/git-fsck/2.40.2"><span class="version">2.40.2</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">04/19/24</em> </a> </li> <li class="no-change"><span>2.40.0 → 2.40.1 no changes</span></li> <li class="no-change"><span>2.39.5 no changes</span></li> <li> <a href="/docs/git-fsck/2.39.4"><span class="version">2.39.4</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">04/19/24</em> </a> </li> <li class="no-change"><span>2.39.3 no changes</span></li> <li> <a href="/docs/git-fsck/2.39.2"><span class="version">2.39.2</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">02/06/23</em> </a> </li> <li class="no-change"><span>2.39.1 no changes</span></li> <li> <a href="/docs/git-fsck/2.39.0"><span class="version">2.39.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">12/12/22</em> </a> </li> <li class="no-change"><span>2.38.1 → 2.38.5 no changes</span></li> <li> <a href="/docs/git-fsck/2.38.0"><span class="version">2.38.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">10/02/22</em> </a> </li> <li class="no-change"><span>2.35.1 → 2.37.7 no changes</span></li> <li> <a href="/docs/git-fsck/2.35.0"><span class="version">2.35.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">01/24/22</em> </a> </li> <li class="no-change"><span>2.30.2 → 2.34.8 no changes</span></li> <li class="no-change"><span>2.30.1 no changes</span></li> <li class="no-change"><span>2.22.2 → 2.30.0 no changes</span></li> <li> <a href="/docs/git-fsck/2.22.1"><span class="version">2.22.1</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">08/11/19</em> </a> </li> <li> <a href="/docs/git-fsck/2.22.0"><span class="version">2.22.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">06/07/19</em> </a> </li> <li class="no-change"><span>2.21.1 → 2.21.4 no changes</span></li> <li> <a href="/docs/git-fsck/2.21.0"><span class="version">2.21.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">02/24/19</em> </a> </li> <li class="no-change"><span>2.19.1 → 2.20.5 no changes</span></li> <li> <a href="/docs/git-fsck/2.19.0"><span class="version">2.19.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">09/10/18</em> </a> </li> <li class="no-change"><span>2.11.4 → 2.18.5 no changes</span></li> <li> <a href="/docs/git-fsck/2.10.5"><span class="version">2.10.5</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">09/22/17</em> </a> </li> <li> <a href="/docs/git-fsck/2.9.5"><span class="version">2.9.5</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">07/30/17</em> </a> </li> <li class="no-change"><span>2.7.6 → 2.8.6 no changes</span></li> <li> <a href="/docs/git-fsck/2.6.7"><span class="version">2.6.7</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">05/05/17</em> </a> </li> <li class="no-change"><span>2.1.4 → 2.5.6 no changes</span></li> <li> <a href="/docs/git-fsck/2.0.5"><span class="version">2.0.5</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">12/17/14</em> </a> </li> <li> </li> </ol> <footer> <p>Check your version of git by running</p> <code class="command">git --version</code> </footer> </div> </div> <div id="main" data-pagefind-filter="category:reference" data-pagefind-meta="category:Reference" data-pagefind-weight="0.05" data-pagefind-body> <div class="sect1"> <h2 id="_name"><a class="anchor" href="#_name"></a>NAME</h2> <div class="sectionbody"> <div class="paragraph"> <p>git-fsck - Verifies the connectivity and validity of the objects in the database</p> </div> </div> </div> <div class="sect1"> <h2 id="_synopsis"><a class="anchor" href="#_synopsis"></a>SYNOPSIS</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content"><em>git fsck</em> [--tags] [--root] [--unreachable] [--cache] [--no-reflogs] [--[no-]full] [--strict] [--verbose] [--lost-found] [--[no-]dangling] [--[no-]progress] [--connectivity-only] [--[no-]name-objects] [<object>…​]</pre> </div> </div> </div> <div class="sect1"> <h2 id="_description"><a class="anchor" href="#_description"></a>DESCRIPTION</h2> <div class="sectionbody"> <div class="paragraph"> <p>Verifies the connectivity and validity of the objects in the database.</p> </div> </div> </div> <div class="sect1"> <h2 id="_options"><a class="anchor" href="#_options"></a>OPTIONS</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-fsck.txt-ltobjectgt"> <a class="anchor" href="#Documentation/git-fsck.txt-ltobjectgt"></a><object> </dt> <dd> <p>An object to treat as the head of an unreachability trace.</p> <div class="paragraph"> <p>If no objects are given, <em>git fsck</em> defaults to using the index file, all SHA-1 references in the <code>refs</code> namespace, and all reflogs (unless --no-reflogs is given) as heads.</p> </div> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---unreachable"> <a class="anchor" href="#Documentation/git-fsck.txt---unreachable"></a>--unreachable </dt> <dd> <p>Print out objects that exist but that aren’t reachable from any of the reference nodes.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---no-dangling"> <a class="anchor" href="#Documentation/git-fsck.txt---no-dangling"></a>--[no-]dangling </dt> <dd> <p>Print objects that exist but that are never <em>directly</em> used (default). <code>--no-dangling</code> can be used to omit this information from the output.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---root"> <a class="anchor" href="#Documentation/git-fsck.txt---root"></a>--root </dt> <dd> <p>Report root nodes.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---tags"> <a class="anchor" href="#Documentation/git-fsck.txt---tags"></a>--tags </dt> <dd> <p>Report tags.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---cache"> <a class="anchor" href="#Documentation/git-fsck.txt---cache"></a>--cache </dt> <dd> <p>Consider any object recorded in the index also as a head node for an unreachability trace.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---no-reflogs"> <a class="anchor" href="#Documentation/git-fsck.txt---no-reflogs"></a>--no-reflogs </dt> <dd> <p>Do not consider commits that are referenced only by an entry in a reflog to be reachable. This option is meant only to search for commits that used to be in a ref, but now aren’t, but are still in that corresponding reflog.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---full"> <a class="anchor" href="#Documentation/git-fsck.txt---full"></a>--full </dt> <dd> <p>Check not just objects in GIT_OBJECT_DIRECTORY ($GIT_DIR/objects), but also the ones found in alternate object pools listed in GIT_ALTERNATE_OBJECT_DIRECTORIES or $GIT_DIR/objects/info/alternates, and in packed Git archives found in $GIT_DIR/objects/pack and corresponding pack subdirectories in alternate object pools. This is now default; you can turn it off with --no-full.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---connectivity-only"> <a class="anchor" href="#Documentation/git-fsck.txt---connectivity-only"></a>--connectivity-only </dt> <dd> <p>Check only the connectivity of reachable objects, making sure that any objects referenced by a reachable tag, commit, or tree are present. This speeds up the operation by avoiding reading blobs entirely (though it does still check that referenced blobs exist). This will detect corruption in commits and trees, but not do any semantic checks (e.g., for format errors). Corruption in blob objects will not be detected at all.</p> <div class="paragraph"> <p>Unreachable tags, commits, and trees will also be accessed to find the tips of dangling segments of history. Use <code>--no-dangling</code> if you don’t care about this output and want to speed it up further.</p> </div> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---strict"> <a class="anchor" href="#Documentation/git-fsck.txt---strict"></a>--strict </dt> <dd> <p>Enable more strict checking, namely to catch a file mode recorded with g+w bit set, which was created by older versions of Git. Existing repositories, including the Linux kernel, Git itself, and sparse repository have old objects that trigger this check, but it is recommended to check new projects with this flag.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---verbose"> <a class="anchor" href="#Documentation/git-fsck.txt---verbose"></a>--verbose </dt> <dd> <p>Be chatty.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---lost-found"> <a class="anchor" href="#Documentation/git-fsck.txt---lost-found"></a>--lost-found </dt> <dd> <p>Write dangling objects into .git/lost-found/commit/ or .git/lost-found/other/, depending on type. If the object is a blob, the contents are written into the file, rather than its object name.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---name-objects"> <a class="anchor" href="#Documentation/git-fsck.txt---name-objects"></a>--name-objects </dt> <dd> <p>When displaying names of reachable objects, in addition to the SHA-1 also display a name that describes <strong>how</strong> they are reachable, compatible with <a href='/docs/git-rev-parse'>git-rev-parse[1]</a>, e.g. <code>HEAD@{1234567890}~25^2:src/</code>.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt---no-progress"> <a class="anchor" href="#Documentation/git-fsck.txt---no-progress"></a>--[no-]progress </dt> <dd> <p>Progress status is reported on the standard error stream by default when it is attached to a terminal, unless --no-progress or --verbose is specified. --progress forces progress status even if the standard error stream is not directed to a terminal.</p> </dd> </dl> </div> </div> </div> <div class="sect1"> <h2 id="_configuration"><a class="anchor" href="#_configuration"></a>CONFIGURATION</h2> <div class="sectionbody"> <div class="paragraph"> <p>Everything below this line in this section is selectively included from the <a href='/docs/git-config'>git-config[1]</a> documentation. The content is the same as what’s found there:</p> </div> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-fsck.txt-fsckltmsg-idgt"> <a class="anchor" href="#Documentation/git-fsck.txt-fsckltmsg-idgt"></a>fsck.<msg-id> </dt> <dd> <p>During fsck git may find issues with legacy data which wouldn’t be generated by current versions of git, and which wouldn’t be sent over the wire if <code>transfer.fsckObjects</code> was set. This feature is intended to support working with legacy repositories containing such data.</p> <div class="paragraph"> <p>Setting <code>fsck.<msg-id></code> will be picked up by <a href='/docs/git-fsck'>git-fsck[1]</a>, but to accept pushes of such data set <code>receive.fsck.<msg-id></code> instead, or to clone or fetch it set <code>fetch.fsck.<msg-id></code>.</p> </div> <div class="paragraph"> <p>The rest of the documentation discusses <code>fsck.*</code> for brevity, but the same applies for the corresponding <code>receive.fsck.*</code> and <code>fetch.fsck.*</code>. variables.</p> </div> <div class="paragraph"> <p>Unlike variables like <code>color.ui</code> and <code>core.editor</code>, the <code>receive.fsck.<msg-id></code> and <code>fetch.fsck.<msg-id></code> variables will not fall back on the <code>fsck.<msg-id></code> configuration if they aren’t set. To uniformly configure the same fsck settings in different circumstances, all three of them must be set to the same values.</p> </div> <div class="paragraph"> <p>When <code>fsck.<msg-id></code> is set, errors can be switched to warnings and vice versa by configuring the <code>fsck.<msg-id></code> setting where the <code><msg-id></code> is the fsck message ID and the value is one of <code>error</code>, <code>warn</code> or <code>ignore</code>. For convenience, fsck prefixes the error/warning with the message ID, e.g. "missingEmail: invalid author/committer line - missing email" means that setting <code>fsck.missingEmail = ignore</code> will hide that issue.</p> </div> <div class="paragraph"> <p>In general, it is better to enumerate existing objects with problems with <code>fsck.skipList</code>, instead of listing the kind of breakages these problematic objects share to be ignored, as doing the latter will allow new instances of the same breakages go unnoticed.</p> </div> <div class="paragraph"> <p>Setting an unknown <code>fsck.<msg-id></code> value will cause fsck to die, but doing the same for <code>receive.fsck.<msg-id></code> and <code>fetch.fsck.<msg-id></code> will only cause git to warn.</p> </div> <div class="paragraph"> <p>See the <code>Fsck Messages</code> section of <a href='/docs/git-fsck'>git-fsck[1]</a> for supported values of <code><msg-id></code>.</p> </div> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-fsckskipList"> <a class="anchor" href="#Documentation/git-fsck.txt-fsckskipList"></a>fsck.skipList </dt> <dd> <p>The path to a list of object names (i.e. one unabbreviated SHA-1 per line) that are known to be broken in a non-fatal way and should be ignored. On versions of Git 2.20 and later, comments (<em>#</em>), empty lines, and any leading and trailing whitespace are ignored. Everything but a SHA-1 per line will error out on older versions.</p> <div class="paragraph"> <p>This feature is useful when an established project should be accepted despite early commits containing errors that can be safely ignored, such as invalid committer email addresses. Note: corrupt objects cannot be skipped with this setting.</p> </div> <div class="paragraph"> <p>Like <code>fsck.<msg-id></code> this variable has corresponding <code>receive.fsck.skipList</code> and <code>fetch.fsck.skipList</code> variants.</p> </div> <div class="paragraph"> <p>Unlike variables like <code>color.ui</code> and <code>core.editor</code> the <code>receive.fsck.skipList</code> and <code>fetch.fsck.skipList</code> variables will not fall back on the <code>fsck.skipList</code> configuration if they aren’t set. To uniformly configure the same fsck settings in different circumstances, all three of them must be set to the same values.</p> </div> <div class="paragraph"> <p>Older versions of Git (before 2.20) documented that the object names list should be sorted. This was never a requirement; the object names could appear in any order, but when reading the list we tracked whether the list was sorted for the purposes of an internal binary search implementation, which could save itself some work with an already sorted list. Unless you had a humongous list there was no reason to go out of your way to pre-sort the list. After Git version 2.20 a hash implementation is used instead, so there’s now no reason to pre-sort the list.</p> </div> </dd> </dl> </div> </div> </div> <div class="sect1"> <h2 id="_discussion"><a class="anchor" href="#_discussion"></a>DISCUSSION</h2> <div class="sectionbody"> <div class="paragraph"> <p>git-fsck tests SHA-1 and general object sanity, and it does full tracking of the resulting reachability and everything else. It prints out any corruption it finds (missing or bad objects), and if you use the <code>--unreachable</code> flag it will also print out objects that exist but that aren’t reachable from any of the specified head nodes (or the default set, as mentioned above).</p> </div> <div class="paragraph"> <p>Any corrupt objects you will have to find in backups or other archives (i.e., you can just remove them and do an <em>rsync</em> with some other site in the hopes that somebody else has the object you have corrupted).</p> </div> <div class="paragraph"> <p>If core.commitGraph is true, the commit-graph file will also be inspected using <em>git commit-graph verify</em>. See <a href='/docs/git-commit-graph'>git-commit-graph[1]</a>.</p> </div> </div> </div> <div class="sect1"> <h2 id="_extracted_diagnostics"><a class="anchor" href="#_extracted_diagnostics"></a>Extracted Diagnostics</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-fsck.txt-unreachablelttypegtltobjectgt"> <a class="anchor" href="#Documentation/git-fsck.txt-unreachablelttypegtltobjectgt"></a>unreachable <type> <object> </dt> <dd> <p>The <type> object <object>, isn’t actually referred to directly or indirectly in any of the trees or commits seen. This can mean that there’s another root node that you’re not specifying or that the tree is corrupt. If you haven’t missed a root node then you might as well delete unreachable nodes since they can’t be used.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-missinglttypegtltobjectgt"> <a class="anchor" href="#Documentation/git-fsck.txt-missinglttypegtltobjectgt"></a>missing <type> <object> </dt> <dd> <p>The <type> object <object>, is referred to but isn’t present in the database.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-danglinglttypegtltobjectgt"> <a class="anchor" href="#Documentation/git-fsck.txt-danglinglttypegtltobjectgt"></a>dangling <type> <object> </dt> <dd> <p>The <type> object <object>, is present in the database but never <em>directly</em> used. A dangling commit could be a root node.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-hashmismatchltobjectgt"> <a class="anchor" href="#Documentation/git-fsck.txt-hashmismatchltobjectgt"></a>hash mismatch <object> </dt> <dd> <p>The database has an object whose hash doesn’t match the object database value. This indicates a serious data integrity problem.</p> </dd> </dl> </div> </div> </div> <div class="sect1"> <h2 id="_fsck_messages"><a class="anchor" href="#_fsck_messages"></a>FSCK MESSAGES</h2> <div class="sectionbody"> <div class="paragraph"> <p>The following lists the types of errors <code>git fsck</code> detects and what each error means, with their default severity. The severity of the error, other than those that are marked as "(FATAL)", can be tweaked by setting the corresponding <code>fsck.<msg-id></code> configuration variable.</p> </div> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadDatecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadDatecode"></a><code>badDate</code> </dt> <dd> <p>(ERROR) Invalid date format in an author/committer line.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadDateOverflowcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadDateOverflowcode"></a><code>badDateOverflow</code> </dt> <dd> <p>(ERROR) Invalid date value in an author/committer line.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadEmailcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadEmailcode"></a><code>badEmail</code> </dt> <dd> <p>(ERROR) Invalid email format in an author/committer line.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadFilemodecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadFilemodecode"></a><code>badFilemode</code> </dt> <dd> <p>(INFO) A tree contains a bad filemode entry.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadNamecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadNamecode"></a><code>badName</code> </dt> <dd> <p>(ERROR) An author/committer name is empty.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadObjectSha1code"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadObjectSha1code"></a><code>badObjectSha1</code> </dt> <dd> <p>(ERROR) An object has a bad sha1.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadParentSha1code"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadParentSha1code"></a><code>badParentSha1</code> </dt> <dd> <p>(ERROR) A commit object has a bad parent sha1.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadRefFiletypecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadRefFiletypecode"></a><code>badRefFiletype</code> </dt> <dd> <p>(ERROR) A ref has a bad file type.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadRefNamecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadRefNamecode"></a><code>badRefName</code> </dt> <dd> <p>(ERROR) A ref has an invalid format.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadTagNamecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadTagNamecode"></a><code>badTagName</code> </dt> <dd> <p>(INFO) A tag has an invalid format.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadTimezonecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadTimezonecode"></a><code>badTimezone</code> </dt> <dd> <p>(ERROR) Found an invalid time zone in an author/committer line.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadTreecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadTreecode"></a><code>badTree</code> </dt> <dd> <p>(ERROR) A tree cannot be parsed.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadTreeSha1code"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadTreeSha1code"></a><code>badTreeSha1</code> </dt> <dd> <p>(ERROR) A tree has an invalid format.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codebadTypecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codebadTypecode"></a><code>badType</code> </dt> <dd> <p>(ERROR) Found an invalid object type.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codeduplicateEntriescode"> <a class="anchor" href="#Documentation/git-fsck.txt-codeduplicateEntriescode"></a><code>duplicateEntries</code> </dt> <dd> <p>(ERROR) A tree contains duplicate file entries.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codeemptyNamecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codeemptyNamecode"></a><code>emptyName</code> </dt> <dd> <p>(WARN) A path contains an empty name.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codeextraHeaderEntrycode"> <a class="anchor" href="#Documentation/git-fsck.txt-codeextraHeaderEntrycode"></a><code>extraHeaderEntry</code> </dt> <dd> <p>(IGNORE) Extra headers found after <code>tagger</code>.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codefullPathnamecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codefullPathnamecode"></a><code>fullPathname</code> </dt> <dd> <p>(WARN) A path contains the full path starting with "/".</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitattributesBlobcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitattributesBlobcode"></a><code>gitattributesBlob</code> </dt> <dd> <p>(ERROR) A non-blob found at <code>.gitattributes</code>.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitattributesLargecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitattributesLargecode"></a><code>gitattributesLarge</code> </dt> <dd> <p>(ERROR) The <code>.gitattributes</code> blob is too large.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitattributesLineLengthcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitattributesLineLengthcode"></a><code>gitattributesLineLength</code> </dt> <dd> <p>(ERROR) The <code>.gitattributes</code> blob contains too long lines.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitattributesMissingcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitattributesMissingcode"></a><code>gitattributesMissing</code> </dt> <dd> <p>(ERROR) Unable to read <code>.gitattributes</code> blob.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitattributesSymlinkcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitattributesSymlinkcode"></a><code>gitattributesSymlink</code> </dt> <dd> <p>(INFO) <code>.gitattributes</code> is a symlink.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitignoreSymlinkcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitignoreSymlinkcode"></a><code>gitignoreSymlink</code> </dt> <dd> <p>(INFO) <code>.gitignore</code> is a symlink.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitmodulesBlobcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitmodulesBlobcode"></a><code>gitmodulesBlob</code> </dt> <dd> <p>(ERROR) A non-blob found at <code>.gitmodules</code>.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitmodulesLargecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitmodulesLargecode"></a><code>gitmodulesLarge</code> </dt> <dd> <p>(ERROR) The <code>.gitmodules</code> file is too large to parse.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitmodulesMissingcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitmodulesMissingcode"></a><code>gitmodulesMissing</code> </dt> <dd> <p>(ERROR) Unable to read <code>.gitmodules</code> blob.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitmodulesNamecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitmodulesNamecode"></a><code>gitmodulesName</code> </dt> <dd> <p>(ERROR) A submodule name is invalid.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitmodulesParsecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitmodulesParsecode"></a><code>gitmodulesParse</code> </dt> <dd> <p>(INFO) Could not parse <code>.gitmodules</code> blob.</p> </dd> </dl> </div> <div class="paragraph"> <p><code>gitmodulesLarge</code>; (ERROR) <code>.gitmodules</code> blob is too large to parse.</p> </div> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitmodulesPathcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitmodulesPathcode"></a><code>gitmodulesPath</code> </dt> <dd> <p>(ERROR) <code>.gitmodules</code> path is invalid.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitmodulesSymlinkcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitmodulesSymlinkcode"></a><code>gitmodulesSymlink</code> </dt> <dd> <p>(ERROR) <code>.gitmodules</code> is a symlink.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitmodulesUpdatecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitmodulesUpdatecode"></a><code>gitmodulesUpdate</code> </dt> <dd> <p>(ERROR) Found an invalid submodule update setting.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codegitmodulesUrlcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codegitmodulesUrlcode"></a><code>gitmodulesUrl</code> </dt> <dd> <p>(ERROR) Found an invalid submodule url.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codehasDotcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codehasDotcode"></a><code>hasDot</code> </dt> <dd> <p>(WARN) A tree contains an entry named <code>.</code>.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codehasDotdotcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codehasDotdotcode"></a><code>hasDotdot</code> </dt> <dd> <p>(WARN) A tree contains an entry named <code>..</code>.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codehasDotgitcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codehasDotgitcode"></a><code>hasDotgit</code> </dt> <dd> <p>(WARN) A tree contains an entry named <code>.git</code>.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codelargePathnamecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codelargePathnamecode"></a><code>largePathname</code> </dt> <dd> <p>(WARN) A tree contains an entry with a very long path name. If the value of <code>fsck.largePathname</code> contains a colon, that value is used as the maximum allowable length (e.g., "warn:10" would complain about any path component of 11 or more bytes). The default value is 4096.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemailmapSymlinkcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemailmapSymlinkcode"></a><code>mailmapSymlink</code> </dt> <dd> <p>(INFO) <code>.mailmap</code> is a symlink.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingAuthorcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingAuthorcode"></a><code>missingAuthor</code> </dt> <dd> <p>(ERROR) Author is missing.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingCommittercode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingCommittercode"></a><code>missingCommitter</code> </dt> <dd> <p>(ERROR) Committer is missing.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingEmailcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingEmailcode"></a><code>missingEmail</code> </dt> <dd> <p>(ERROR) Email is missing in an author/committer line.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingNameBeforeEmailcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingNameBeforeEmailcode"></a><code>missingNameBeforeEmail</code> </dt> <dd> <p>(ERROR) Missing name before an email in an author/committer line.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingObjectcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingObjectcode"></a><code>missingObject</code> </dt> <dd> <p>(ERROR) Missing <code>object</code> line in tag object.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingSpaceBeforeDatecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingSpaceBeforeDatecode"></a><code>missingSpaceBeforeDate</code> </dt> <dd> <p>(ERROR) Missing space before date in an author/committer line.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingSpaceBeforeEmailcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingSpaceBeforeEmailcode"></a><code>missingSpaceBeforeEmail</code> </dt> <dd> <p>(ERROR) Missing space before the email in an author/committer line.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingTagcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingTagcode"></a><code>missingTag</code> </dt> <dd> <p>(ERROR) Unexpected end after <code>type</code> line in a tag object.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingTagEntrycode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingTagEntrycode"></a><code>missingTagEntry</code> </dt> <dd> <p>(ERROR) Missing <code>tag</code> line in a tag object.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingTaggerEntrycode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingTaggerEntrycode"></a><code>missingTaggerEntry</code> </dt> <dd> <p>(INFO) Missing <code>tagger</code> line in a tag object.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingTreecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingTreecode"></a><code>missingTree</code> </dt> <dd> <p>(ERROR) Missing <code>tree</code> line in a commit object.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingTypecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingTypecode"></a><code>missingType</code> </dt> <dd> <p>(ERROR) Invalid type value on the <code>type</code> line in a tag object.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemissingTypeEntrycode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemissingTypeEntrycode"></a><code>missingTypeEntry</code> </dt> <dd> <p>(ERROR) Missing <code>type</code> line in a tag object.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codemultipleAuthorscode"> <a class="anchor" href="#Documentation/git-fsck.txt-codemultipleAuthorscode"></a><code>multipleAuthors</code> </dt> <dd> <p>(ERROR) Multiple author lines found in a commit.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codenulInCommitcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codenulInCommitcode"></a><code>nulInCommit</code> </dt> <dd> <p>(WARN) Found a NUL byte in the commit object body.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codenulInHeadercode"> <a class="anchor" href="#Documentation/git-fsck.txt-codenulInHeadercode"></a><code>nulInHeader</code> </dt> <dd> <p>(FATAL) NUL byte exists in the object header.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codenullSha1code"> <a class="anchor" href="#Documentation/git-fsck.txt-codenullSha1code"></a><code>nullSha1</code> </dt> <dd> <p>(WARN) Tree contains entries pointing to a null sha1.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codetreeNotSortedcode"> <a class="anchor" href="#Documentation/git-fsck.txt-codetreeNotSortedcode"></a><code>treeNotSorted</code> </dt> <dd> <p>(ERROR) A tree is not properly sorted.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codeunknownTypecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codeunknownTypecode"></a><code>unknownType</code> </dt> <dd> <p>(ERROR) Found an unknown object type.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codeunterminatedHeadercode"> <a class="anchor" href="#Documentation/git-fsck.txt-codeunterminatedHeadercode"></a><code>unterminatedHeader</code> </dt> <dd> <p>(FATAL) Missing end-of-line in the object header.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codezeroPaddedDatecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codezeroPaddedDatecode"></a><code>zeroPaddedDate</code> </dt> <dd> <p>(ERROR) Found a zero padded date in an author/committer line.</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-codezeroPaddedFilemodecode"> <a class="anchor" href="#Documentation/git-fsck.txt-codezeroPaddedFilemodecode"></a><code>zeroPaddedFilemode</code> </dt> <dd> <p>(WARN) Found a zero padded filemode in a tree.</p> </dd> </dl> </div> </div> </div> <div class="sect1"> <h2 id="_environment_variables"><a class="anchor" href="#_environment_variables"></a>Environment Variables</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-fsck.txt-GITOBJECTDIRECTORY"> <a class="anchor" href="#Documentation/git-fsck.txt-GITOBJECTDIRECTORY"></a>GIT_OBJECT_DIRECTORY </dt> <dd> <p>used to specify the object database root (usually $GIT_DIR/objects)</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-GITINDEXFILE"> <a class="anchor" href="#Documentation/git-fsck.txt-GITINDEXFILE"></a>GIT_INDEX_FILE </dt> <dd> <p>used to specify the index file of the index</p> </dd> <dt class="hdlist1" id="Documentation/git-fsck.txt-GITALTERNATEOBJECTDIRECTORIES"> <a class="anchor" href="#Documentation/git-fsck.txt-GITALTERNATEOBJECTDIRECTORIES"></a>GIT_ALTERNATE_OBJECT_DIRECTORIES </dt> <dd> <p>used to specify additional object database roots (usually unset)</p> </dd> </dl> </div> </div> </div> <div class="sect1"> <h2 id="_git"><a class="anchor" href="#_git"></a>GIT</h2> <div class="sectionbody"> <div class="paragraph"> <p>Part of the <a href='/docs/git'>git[1]</a> suite</p> </div> </div> </div> <h3 hidden="true" data-pagefind-weight="10">fsck</h3> </div> </div> </div> <footer> <div class="site-source"> <a href="/site">About this site</a><br> Patches, suggestions, and comments are welcome. </div> <div class="sfc-member"> Git is a member of <a href="/sfc">Software Freedom Conservancy</a> </div> </footer> <a href="#top" class="no-js scrollToTop" id="scrollToTop" data-label="Scroll to top"> <img src="/images/icons/chevron-up@2x.png" width="20" height="20" alt="scroll-to-top"/> </a> <script src="/js/jquery-1.7.1.min.js"></script> <script src="/js/jquery-ui-1.8.18.custom.min.js"></script> <script src="/js/jquery.defaultvalue.js"></script> <script src="/js/session.min.js"></script> <script src="/js/application.min.js"></script> </div> </body> </html>