how delete the commit using number code example Example: git delete local commit git reset --hard origin/<branch_name>