change git rules
delete useless code and some small changes