Handle local commits