How to do it...

  1. Adding the GitHub extension to Visual Studio is easily done by downloading the visx from the following link and installing it: https://visualstudio.github.com/downloads/GitHub.VisualStudio.vsix.
  1. Assuming that you have an existing application you want to add to GitHub, the process of adding it to a new repository is quite simple. I have simply created a console application with nothing but the template code, but you can add any project type and size to GitHub.
  1. On the View menu in Visual Studio 2017, select the Team Explorer option.
  1. You will be presented with two options under the Hosted Service Providers section. For now, we will select GitHub and, seeing as we already have an account, we will click on Connect...

Get C# 7 and .NET Core Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.