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
If you didn't publish changes, to remove latest commit, you can do
$ git reset --hard HEAD^
(note that this would also remove all uncommitted changes; use with care).
If you already published to-be-deleted commit, use git revert
$ git revert HEAD