git deelte de last n committs in abranch code example Example: git delete local commit git reset --hard origin/<branch_name>