Recovering bad commit