Creating a Git repository
Creating a repository in GitHub from a VS project is very easy to do. In this section, you will have to test your knowledge by creating a new ASP.NET Core Empty project, as discussed in the Templates for ASP.NET Core web applications section of Chapter 2, Creating Projects and Templates. You can name this project GitDemo
.
To create the new repository in GitHub from the project you have created, just select the Git | Create a Git Repository menu option and fill in the repository information, according to the data shown in Figure 9.5:
Figure 9.5 – Filling in the information for a new repository on GitHub
Let’s briefly look at each option:
- Local path: This sets the path on the local machine where the source code is hosted (usually the path where you created the project).
- .gitignore template: This allows you to select a template that establishes a set of files that will not be uploaded to the repository...