how to delete last commit form git code example
Example 1: git cancel last commit
git reset --soft HEAD~1
Example 2: git delete local commit
git reset --hard origin/<branch_name>
git reset --soft HEAD~1
git reset --hard origin/<branch_name>