how to delete commint in the past code example Example: git delete local commit git reset --hard origin/<branch_name>