force

Source

git branch --force <branch-name> [<new-tip-commit>]
  • without <new-tip-commit> this defaults to setting the branch to the current commit
  • <new-tip-commit> can also be another branch name (e.g., main, origin/main)