Visual Studio 2013 RC和源代码管理

时间:2013-09-23 18:48:17

标签: git libgit2 team-explorer visual-studio-2013

在处理存储在Gitlab上并使用Visual Studio 2013 Express RC的项目时,我遇到了一个问题,其中解决方案资源管理器中的几个项目标有红色x(其中挂锁,加号或红色复选标记通常是)在工具提示“待删除”的情况下,在团队资源管理器更改窗口中,我看到它们被标记为删除,奇怪的是,其中一些项目也在Untracked更改部分中重复。不知道如何重现。我唯一能想到的就是删除实体框架并添加EF6 RC1。

真正的问题是我试图提交工作正常的物品。我想在同步后我可以重建可能最终消失的物品。但是,当我去提交 - >同步,我收到了这个错误:

An error occurred. Detailed message: An error was raised by libgit2.
Category = Net (Error).
Response status code does not indicate success: 413 (Request Entity Too Large).

我想到模糊描述的奇怪行为(对不起,不知道它最初是如何发生的)是罪魁祸首。

2 个答案:

答案 0 :(得分:2)

不确定最佳做法,但解决方法是:

1. opening Git Bash
2. cd'ing to the root directory. 
3. Set up globals and origin (using set-url as it already existed. Globals 
   were probably already present, but when attempting step 4 prior to this 
   step, I was greeted with a username/password prompt).
   * Originally wasn't aware that the user/pass was for http auth (which Visual 
     Studio must use). Probably an unneccessary step.
4. git push origin master -> entered passphrase
5. checked on Gitlab: the two commits had been pushed out.

真的希望再次看到413错误消息,但这次希望有更多信息,但没有遇到错误消息。

将标记作为答案,但如果有人知道更“内置”的处理方式,我会非常乐意转而使用。

答案 1 :(得分:2)

请尝试按照以下链接 试试这个http://www.codeease.com/an-error-was-raised-by-libgit2-category-net-error.html

  

我们必须将默认存储库位置更改为我们的项目   我们将项目推送到Visual Studio Online的目录。

     

要更改默认存储库位置,请执行以下操作   步骤进行:

     

1:进入团队资源管理器主屏幕。单击“设置”按钮:

     

2:点击Git设置:

     

3:将默认存储库位置更改为当前项目文件夹,   例如:更改为D:\ Mycode \ MyTestGitProject

     

更改后,现在尝试使用Sync存储库,它应该可以正常工作。

这对我有用

相关问题