git revert all commits and get remote code example
Example: git reset remote
# local
git reset
# or
git reset --hard
# remote
git push -f origin master
# local
git reset
# or
git reset --hard
# remote
git push -f origin master