8

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.

Community
  • 1
  • 1
dumbledad
  • 16,305
  • 23
  • 120
  • 273
  • 2
    It's useful if you down-vote to explain why in a comment so that the poster (me in this case) can learn from it. – dumbledad Feb 09 '14 at 11:54

3 Answers3

8

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\

Addys
  • 2,461
  • 15
  • 24
4

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

neo112
  • 1,703
  • 2
  • 17
  • 39
1

To expand on neo12's answer & address the canonical question "how to use Git in Visual Studio"

I agree with neo12. Additionally you can also navigate directly to solutions from the Team Explorer "Local Git Repositories" section by double clicking them

Here is a walk through I put together to explain in concise detail. The video is less than 2 minutes. Let me know if this helps.

http://prestoasp.net/lesson/how-to-work-with-visual-studio-github/

fredo
  • 127
  • 4