Well well well.
Well well well.
I’ve had juniors who didn’t believe this, so just to say it: If you know what you’re doing, practically any Git problem is recoverable.
The one major exception is if you delete your local changes before committing them.
Delete? Never.
mv git_repo git_repo.bad