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