force push git bash code example
Example 1: git push origin master --force
git push origin --force
Example 2: git push f head
git checkout branchname # if you're not on it already
git reset --hard abcdef0
git push -f
git push origin --force
git checkout branchname # if you're not on it already
git reset --hard abcdef0
git push -f