commit in Mac