It sounds like you may want to do this
git revert ZYXWV
This will create a new commit reverting the commit that is not working on the live site. Now you can pull this to the live site and do git checkout master
.
Then you could proceed and try to recreate a better commit than ZYXWV that will work everywhere.