how do i delete a commit in git code example
Example 1: remove the commit from local
git reset --soft HEAD~1
Example 2: delete everythng after a certain commit
git reset HEAD@{index}
Example 3: git delete commit 4785cd1e041
git reset --hard <sha1-commit-id>