From the course: Visual Studio: Source Control with Git and GitHub

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Initialize a new repository: VS solution

Initialize a new repository: VS solution - Visual Studio Tutorial

From the course: Visual Studio: Source Control with Git and GitHub

Start my 1-month free trial

Initialize a new repository: VS solution

- [Instructor] Now it's time to look at how to add an existing solution and project to a Git repository. You can see I've already created a simple solution called WorkingWithGit that has one project called SimpleConsole and I created this by going to File, New Project, choosing to build a console application, and then naming our project SimpleConsole and my solution WorkingWithGit, and then I put it in this VS folder. And you can see it over here in File Explorer. There's my SLN file, there's my simple console file, and what I want to do is add that Git folder here. So what I do is I go to Visual Studio, right click on the solution, and choose to Add the Solution to Source Control. And you'll see several things happen. Over in File Explorer, we see the new .git folder, we see the .gitattributes and .gitignore files, the same as the previous example in a previous video, and then over in Visual Studio there's some new…

Contents