How Do I Add a Project to Git Repository in Visual Studio

Open a solution in Visual Studio.If solution is not already initialized as a Git repository, select Add to Source Control from the File menu.Open Team Explorer.In Team Explorer, click Sync.Click the Publish to GitHub button.

How do I add a project to existing GitHub repository in Visual Studio?

To add a project within a solution, just open the Team Explorer window and go to Changes. Then, under Untracked Files, click on View options and select Switch to Tree View (unless it is already in tree view), right click on the project root folder, and select Add. Here is how to do it in Visual Studio 2015.

How do I add an existing project to Git Visual Studio code?

  1. Log on to GitHub, created a new project (repository or whatever you can call).
  2. Copy the URL.
  3. Back to VS Code, install GitHub extension.
  4. Go Welcome page, click on “Clone Git repository…”. Paste the URL for “Repository URL”. Enter my local path C:\ABC, .
Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest