remove head commit from all commits