I was searching for a way to remove my last GitHub commit and found this command on:
How can I remove a commit on GitHub?
It worked. The problem is that I accidentally did it to the wrong repository.
I read in comments that commit is not really deleted, but
"...this only moves the branch pointer."
How can I recover from this command and revert to the last commit?