how to delete commits on the current branch code example Example: git clear commits git reset --hard origin