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