Refactor. Simplify functions. Check git command existing or not.