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.