Delete a pushed commit
Published:
Instead of revert, if you would like to delete a pushed commit,
do:
git reset --soft HEAD~2 //number of commit you want to delete
The state is back to where you haven’t pushed yet, don’t pull it.
do:
git push origin +master --force
or your
+desired branch