вернуться к конкретному коммитированию
git reset --hard <SHAsum of your commit>
git push -f
Tough Tarsier
git reset --hard <SHAsum of your commit>
git push -f
git revert --no-commit <commithash>..HEAD #revert changes in range of commits from head to back to that commit hash