Visual Studio 2013中的Git远程操作导致错误“指定的登录会话不存在.它可能已经被终止了. [英] Git remote operations inside Visual Studio 2013 result in the error "A specified logon session does not exist. It may already have been terminated"

查看:87
本文介绍了Visual Studio 2013中的Git远程操作导致错误“指定的登录会话不存在.它可能已经被终止了.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013中使用Git.当我尝试对远程进行任何操作(如提取,拉动,推入等)时,出现以下错误:

I am using Git inside Visual Studio 2013. When I attempt to do any operation against a remote like fetch, pull, push, etc. I get the following error:

发生错误.详细消息:libgit2引发了错误.类别=净(错误).指定的登录会话不存在.它可能已经终止了

An error occurred. Detailed message: An error was raised by libgit2. Category = Net (Error). A specified logon session does not exist. It may already have been terminated

我找不到答案,但最终找到了两种解决方法.我将在此处发布解决方法.

I was unable to find an answer but eventually found two work-arounds. I will post the work-arounds here.

  1. 我下载了Git,因此可以在Visual Studio之外使用它.如果我在命令行上运行了git remote命令,它们工作得很好,所以问题不在于git或我的远程git存储库.

  1. I downloaded Git so I could use it outside of Visual Studio. If I ran git remote commands on the command line they worked just fine so the problem was not with git or my remote git repository.

每当我通过Visual Studio进行远程git操作时,它都会使用标准的Windows对话框以捕获密码.我注意到如果记住我的凭据"框,我总是会收到错误消息被检查了.如果我取消选中它,它将正常工作.

Whenever I do a remote git operation through Visual Studio it uses the standard windows dialog to capture the password. I noticed that I would always get the error if the "Remember my credentials" box was checked. If I unchecked it, it would work fine.

推荐答案

未选中记住我的凭据"复选框.

Unchecked "Remember My Credentials" checkbox.

Visual Stdio 2015要求我两次输入凭据.

Visual Stdio 2015 asked me enter credentials two times.

请同时取消选中上述复选框.对我有用

please uncheck above mentioned checkbox both the times. it worked for me

这篇关于Visual Studio 2013中的Git远程操作导致错误“指定的登录会话不存在.它可能已经被终止了.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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