git push <remote> master --force code example
Example 1: git force push
git push --force
Example 2: how to push force git
git push origin <your_branch_name> --force
git push --force
git push origin <your_branch_name> --force