git push -u origin main --force code example Example: git push origin master --force git push origin --force