Git Clients

git-repair – repair damaged Git repositories

git-repair is a command-line utility for recovering damaged Git repositories. It is designed to restore a working repository where objects have become corrupted or disappeared, without necessarily requiring users to discard their local copy and clone the project again.

Git provides the git fsck command for identifying inconsistencies and missing objects, but it does not automatically repair every problem. git-repair complements this functionality by attempting to recover missing information from configured remotes and reconstruct usable repository state.

The tool prioritises returning a repository to a functional condition rather than guaranteeing recovery of every object. More aggressive repairs can discard unrecoverable history, so it is sensible to preserve a copy of a damaged repository before attempting recovery.

This is free and open source software.

Key Features

  • Detect and repair several forms of Git object corruption.
  • Remove corrupt objects and attempt to recover missing objects from configured remote repositories.
  • Complement git fsck with automated recovery operations.
  • Attempt repairs without discarding an entire local repository.
  • Preserve local commits and changes where recovery is possible.
  • Optional forced recovery when ordinary repair cannot restore consistency.
  • Reset branches to earlier recoverable commits where necessary.
  • Remove branch references that cannot be reconstructed from available objects.
  • Repair index entries referring to missing files during forced recovery.
  • Self-testing mode that deliberately corrupts temporary repository copies to exercise recovery procedures.
  • Configurable test counts and retry options.
  • Preserves tags rather than automatically deleting broken references.
  • Leaves reflog and stash cleanup to separate Git maintenance operations.
  • Suitable for recovery attempts on repositories containing work not yet pushed to a remote.

Website: git-repair.branchable.com
Support:
Developer: Joey Hess
License: GNU Affero General Public License v3.0

git-repair is written in Haskell. Learn Haskell with our recommended free books and free tutorials.


Related Software

Git Storage and Security Tools
git-lfsGit extension for versioning large files
JujutsuPowerful version control system for software projects
git-bugDistributed offline-first bug tracker
DashRich terminal UI for GitHub
git-secretsPrevent adding secrets into git repositories
CommitizenCreate well-structured Git commit messages
git-repairRepair various forms of damage to git repositories
git-secretBash tool which stores private data inside a git repo
git-annexManage files with git without checking the file contents into git
gitmoji-cliUse gitmojis in Git commit messages
ghqOrganise local clones of remote repositories
git-cryptTransparent file encryption in git
gitaManage multiple git repos
git-chglogCHANGELOG generator implemented in Go
cz-gitCommitizen adapter and command-line tool
gitpaneMulti-repo Git workspace dashboard
git-trimKeep Git working directories clear of stale local branches
gfoldKeep track of multiple Git repositories
GardenCommand runner and multi-repo Git configuration tool
maniManage collections of Git repositories
GitSocialGit-native cross-forge collaboration
git-freshRefresh Git working copies from the terminal
Forge SparksGet Git forges notifications
gohomeGit standup and activity reporting CLI
git-appraiseDistributed code review system for Git repositories

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted