force pushing in github code example Example 1: git force push git push --force Example 2: git force push git push -f