title: C# example of downloading GitHub private repo programmatically
body: <p>I see that the download path for a GitHub repo is of the form</p>
  
  <pre><code>https://github.com/{username}/{reponame}/archive/{branchname}.zip
  </code></pre>
  
  <p>For a private repo, understandably you need to provide credentials in order to download the repo, can anyone provide a C# example on how to provide a HTTPS basic authentication so I can download the repo programmatically?</p>
  
  <p>Thanks,</p>