如何从Visual Studio 2013中将现有解决方案添加到GitHub中 [英] How do I add an existing Solution to GitHub from Visual Studio 2013

查看:336
本文介绍了如何从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

这篇关于如何从Visual Studio 2013中将现有解决方案添加到GitHub中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆