moving getUserInfo method to GitAgent