git push f head code example
Example: git push f head
git checkout branchname # if you're not on it already
git reset --hard abcdef0
git push -f
git checkout branchname # if you're not on it already
git reset --hard abcdef0
git push -f