How To Install git-repair on Fedora 36

In this tutorial we learn how to install git-repair in Fedora 36. git-repair is Repairs a damaged git repository

Introduction

In this tutorial we learn how to install git-repair on Fedora 36.

What is git-repair

Git-repair can repair various forms of damage to git repositories. It is a complement to git fsck, which finds problems, but does not fix them. As well as avoiding the need to rm -rf a damaged repository and re-clone, using git-repair can help rescue commits you’ve made to the damaged repository and not yet pushed out.

We can use yum or dnf to install git-repair on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install git-repair.

Install git-repair on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install git-repair using dnf by running the following command:

sudo dnf -y install git-repair

Install git-repair on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install git-repair using yum by running the following command:

sudo yum -y install git-repair

How To Uninstall git-repair on Fedora 36

To uninstall only the git-repair package we can use the following command:

sudo dnf remove git-repair

git-repair Package Contents on Fedora 36

/usr/bin/git-repair
/usr/lib/.build-id
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/e255594e615db7b232ad1b5c1fb665ca49dfd3
/usr/share/bash-completion/completions/git-repair
/usr/share/doc/git-repair
/usr/share/doc/git-repair/CHANGELOG
/usr/share/doc/git-repair/TODO
/usr/share/licenses/git-repair
/usr/share/licenses/git-repair/COPYRIGHT

References

Summary

In this tutorial we learn how to install git-repair on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).