git branch -f master <COMMIT ID>

👉 More info