I would like to know how to delete a commit.
By delete, I mean it is as if I didn\'t make that commit, and when I do a push in the future, my changes wi
delete
use git revert https://git-scm.com/docs/git-revert .It will revert all code then you can do next commit.Then head will point to that last commit. reverted commits never delete but it will not affect on you last commit.