added GitMenu and modified main while loop