Replace corrupted bare repository from other fork of the same project

Hello everyone.
I have a corrupted bare repo on a self-hosted instance. This is my main repo, and I have several forks for this repo.
Is it possible to replace the entire corrupted repo files with the files of a healthy fork repo?
Any recommendations?