how to push force git

Shell
git push -f <remote> <branch>
# example: git push -f origin mastergit push origin <your_branch_name> --force

Source

Also in Shell: