test git setup is correct and return errors to user