You can use git push with the force option
git push -f
via manpages:
-f,
Usually, the command refuses to update a remote ref that is not an ancestor of the local ref
used to overwrite it. This flag disables the check. This can cause the remote repository to
lose commits; use it with care.
source
share