将Visual Studio 2015项目发布到GitHub [英] Publishing Visual Studio 2015 Project to GitHub

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

问题描述

我在Visual Studio 2015中有一个当前项目.

I have a current project in Visual Studio 2015.

我正在尝试将此项目发布到组织GitHub帐户中的新的空存储库中.

I am trying to publish this project to an new empty repository in an organizational GitHub account.

在Visual Studio 2015 Team Explorer中,我转到Sync/Remote Git Repo.

In Visual Studio 2015 Team Explorer, I go to Sync/ Remote Git Repo.

在该标签下,我将空存储库的URL粘贴到Github中.

Under that tab, I paste the URL of our empty repository in Github.

出现通知,提示发布分支"

A notification comes up saying " Publishing branch"

然后在Visual Studio输出窗口中出现以下错误:

There is then the following error in the Visual Studio output windows:

在将分支发布到远程存储库时遇到错误:无法为松散的对象充气"

"Error encountered while publishing branch to remote repository: Failed to inflate loose object"

有人可能知道导致此错误的原因吗?

Does anybody perhaps know what causes this error?

推荐答案

您好DeonNieuwoudt,

Hi DeonNieuwoudt,

您使用哪个版本的Visual Studio 2015?

Which version of Visual Studio 2015 do you use?

我正在通过以下步骤使用Visual Studio Community 2015 Update 3,在我这方面的发布很成功.请检查您的步骤以确保其正确.

I'm using Visual Studio Community 2015 Update 3 with following steps, which is publish successful in my side. Please check your steps to make sure it is correct.

  1. 在GitHub上创建一个新的空存储库,而无需使用自述文件初始化存储库".
  2. 在我的计算机上安装 Windows版Git .
  3. 安装 Visual Studio 2015的GitHub扩展.
  4. 在Visual Studio 2015中打开项目,然后右键单击以选择添加".
  5. 在Team Explorer中,转到Sync->远程Git存储库.
  6. 粘贴存储库URL,然后单击发布"按钮.

输入我的GitHub用户名和密码后,该项目成功发布到GitHub.请确认步骤2和步骤3,以确保已安装Windows版Git和Visual Studio 2015的GitHub扩展.

After typing my GitHub username and password, the project publish to GitHub successfully. Please confirm the Step 2 and Step 3 to make sure you have installed the Git for Windows and GitHub Extension for Visual Studio 2015.

此外,根据发布分支",消息,似乎您正在将一个分支项目发布到GitHub.请创建一个没有任何更改的新项目,并将其发布到GitHub.这可以帮助我们确认此问题是否与 到您的项目或Visual Studio本身.

In addition, according to the "Publishing branch" message, it seems that you are publish a branch project to GitHub. Please create a new project without any changes and publish it to GitHub. This could help us confirm whether this issue related to your project or Visual Studio itself.

最好的问候,
Weiwei

Best Regards,
Weiwei


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

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