if you do git push on a branch code example Example: git push origin master --force git push origin --force