Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloning a GitHub project into Visual Studio 2013

The canonical question on 'how to use Git in Visual Studio?' appears to be this one posted by Herb Caudill.

One of the more recent answers notes (correctly) that "Visual Studio 2013 natively supports Git".

So when I go to a Github page (supercolider's is the one I'm trying to clone) and click on the 'Clone in Desktop' button I would expect (hope) that Visual Studio 2013 would take up the link and clone the repository. That is not what happens, instead Windows (I'm using 8.1) asks me if I would like to visit the store to find an app that can handle files of type (github-windows).

What is the correct way to clone a GitHub repository in Windows under Visual Studio 2013? The various MSDN pages (e.g. Share your code in Git or Setup Git on your dev machine) mention GitHub but do not explain how to use it.

like image 726
dumbledad Avatar asked Feb 09 '14 11:02

dumbledad


2 Answers

It is super easy once you know how :)

From within Visual Studio 2013:

  1. Select File -> Open -> Open From Source Control
  2. The Team Explorer window will come up, one of the sections is "Local GIT repositories". In that section choose "Clone".
  3. That will bring up a path selection textbox and directory browser. Simply replace the default path with the git URL (in your case "https://github.com/supercollider/supercollider")

Thats it!

Note: unless specified otherwise, Visual Studio will store the actual files here: C:\Users\\Source\Repos\

like image 126
Addys Avatar answered Nov 19 '22 16:11

Addys


What you do is go to the Team Explorer, click the Connect to Team Projects, select the Clone option and enter the URL of the Repo you wish to clone and press Clone

like image 4
neo112 Avatar answered Nov 19 '22 17:11

neo112