force git push to remote code example
Example 1: git push origin master --force
git push origin --force
Example 2: git new branch push to remote
git push -u origin <branch>
Example 3: git force push to remote
git push -f <remote> <branch>
# example: git push -f origin master
Example 4: git force push
git push -f