git push --force makes the remote branch point where yours does. After a rebase it is needed, but it can throw away teammates’ commits. --force-with-lease refuses if the remote moved since you last fetched.
force push
overwrites a remote branch with your local one, even if that discards commits; prefer --force-with-lease.