>>8 Additionally, here is the "Git way" to rollback stuff that i use:
1.Create a branch from a good old commit.
2.Manually verify & merge each commit after "probable bad commit".
*might involve local testing to check.
3.Set it as default branch.
4.delete master.(or main)
5.create master from this new branch. set it as default.
THERE IS NOTHING in git like a command "Remove this commit and all commits dependent on it", because git doesn't know which git commits are bad or dependent on bad commits and which are good commits.