Some code from our project that we use for working with git and Github.
usingKysect.GithubUtils.RepositoryDiscovering;usingKysect.GithubUtils.RepositorySync;usingSerilog;Log.Logger=newLoggerConfiguration().MinimumLevel.Debug().WriteTo.Console().CreateLogger();vardiscoveryService=newGitHubRepositoryDiscoveryService("github_token");varrepositoryFetchOptions=newRepositoryFetchOptions("github_username","github_token");varrepositoryFetcher=newRepositoryFetcher(repositoryFetchOptions);varorganizationFetcher=newOrganizationFetcher(discoveryService,repositoryFetcher,newUseRepoForFolderNameStrategy(@"root_dir_path"));varresult=organizationFetcher.Fetch("github_org_name");Result in the line
varresult=organizationFetcher.Fetch("github_org_name");stands only for cloned repositories infos, there is no action required to save something from this info to achieve repositories clones on your file system. Look for cloned repos by path specified as "root_dir_path".