如何从Visual Studio 2013中将现有解决方案添加到GitHub中

问题描述:

我浏览了很多关于VS 2013中新Git集成的网页,他们不涉及为Github添加现有解决方案。事实上我找不到使用GitHub而不是Visual Studio Online。

I have looked through many web pages on the new Git integration in VS 2013 and they do not deal with adding an existing solution to Github. In fact I can't find much on using GitHub instead of Visual Studio Online.

任何人都可以告诉我如何从现有解决方案入手,并将其添加到Github中工具在VS 2013中。

Can anyone tell me how I start from an existing solution and add it to Github using the tools in VS 2013.

确定这对我有效。

OK this worked for me.


  1. 在Visual Studio 2013中打开解决方案

  2. 选择文件|添加到源代码管理

  3. 选择Microsoft Git提供程序

创建本地GIT存储库

That creates a local GIT repository


  1. 浏览GitHub
  2. 创建一个新的存储库不要SELECT初始化这个存储库使用自述文件

创建一个没有Master分支的空白存储库

That creates an empty repository with no Master branch


  1. 创建后打开存储库并复制URL(它位于当前版本的屏幕右侧)
  2. 返回Visual Studio


    • 确保您在工具/选项/源代码管理/插件选择下选择了Microsoft Git Provider

您的解决方案现在位于GitHub

Your solution is now in GitHub