git reset remote push code example Example: git reset remote # local git reset # or git reset --hard # remote git push -f origin master