从Visual Studio 2010上传项目到GitHub [英] Uploading project to GitHub from Visual Studio 2010

查看:329
本文介绍了从Visual Studio 2010上传项目到GitHub的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个GitHub帐户。



我有一个安装了Git Extensions和Git Source Control提供程序的Visual Studio 2010.

我创建了一个干净的项目。如何上传到GitHub?



关于这个特定主题的教程会很好。

解决方案

为了将一个Visual Studio项目上传到GitHub,需要在GitExtension提交对话框中执行一个推送操作。 >

基本上,将项目与GitHub服务器同步称为Git术语中的push。



为了能够推,需要执行以下操作:


  1. 创建本地存储库。 GitHub和GitExtensions手册详细介绍了这一点。

  2. 使用GitHub帐户在线创建存储库。 GitHub帮助详细介绍了这一点。
  3. 将本地存储库映射到在线存储库。这需要进入GitExtensions的Manage Remotes对话框(通过Visual Studio主菜单中的Git-> Manage Remotes菜单项访问)并保存远程仓库的新实例。然后,在提交时选择Commit& push,并指向推送到在步骤3中创建的远程回购。

  4. li>


I have a GitHub account.

I have a Visual Studio 2010 with Git Extensions and Git Source Control provider installed.

I have created a clean project. How do I upload it to GitHub?

P.S. A tutorial on this particular topic would be fine.

解决方案

In order to upload a Visual Studio Project to GitHub one needs to perform a push operation in GitExtension commit dialog.

Basically syncing the project with GitHub server is called "push"ing in Git terminology.

In order to be able to push, one needs to do the following:

  1. Create a local repository. This is covered in detail by both GitHub and GitExtensions manual.

  2. Create a repository online from GitHub account. This is covered in detail by GitHub help.

  3. Map a local repository to an online one. This requires going to Manage Remotes dialog of GitExtensions (accessed via Git->Manage Remotes menu item in Visual Studio main menu) and saving a new instance of a remote repo.

  4. Then, at commit, choose to "Commit & push", and point push to a remote repo created in step 3.

这篇关于从Visual Studio 2010上传项目到GitHub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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