Or exit if there is nothing to commit