git go back one commit and push code example
Example: git reset remote
# local
git reset <commit-hash>
# or
git reset --hard <commit-hash>
# remote
git push -f origin master
# local
git reset <commit-hash>
# or
git reset --hard <commit-hash>
# remote
git push -f origin master