Following are the commands:
git checkout main
git reset --hard 474412f
git push --force origin 474412f:main
Suppose your branch name is master then give master instead of main
When you push, you may confront with the error: Repository not found.
Then execute the following commands:
git remote remove origin
git remote add origin https://USERNAME:GENERATED_TOKEN@github.com/..REPO_PATH../REPOSITORY.git
Replace the CAPITAL text with proper text.
Then execute the push command again:
git push --force origin 474412f:main