refine Git exercise