Fix git duplication problem and improved git commit script