push by force git code example Example 1: git push origin master --force Click to copygit push origin --force Example 2: git force push Click to copygit push -f