git command to push to origin code example
Example 1: git push origin master --force
git push origin --force
Example 2: push local branch changes to remote branch
git push -u origin localBranch:remoteBranchToBeCreated
git push origin --force
git push -u origin localBranch:remoteBranchToBeCreated