Git repository broken after computer died January 5, 2023 by Tarik I managed to recover through: rm .git/refs/remotes/origin/HEAD git fetch --all