optimize gitcommit to add . first