Always use git push with the option of --force-with-lease.

This makes sure that you don’t overwrite someone else commit by accident. Git push force would just rewrite any history with no checks.

With Lease is safer to do since it doesn’t allow rewrite when somebody else has pushes a commit.

git
Rebase in Pull Requests
Rebase Onto
Create Merge Request Procedure