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