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