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 deleteThe state is back to where you haven’t pushed yet, don’t pull it.
do:
git push origin +master --forceor your
+desired branch
