Git remote operations inside Visual Studio 2013 result in the error "The specified login session does not exist. It may already be completed"

I use Git inside Visual Studio 2013. When I try to perform any operation with the remote, for example, extraction, pull, push, etc., I get the following error:

An error has occurred. Detailed message: The error was caused by libgit2. Category = Net (Error). The specified login session does not exist. It may already be completed.

I could not find the answer, but in the end I found two workarounds. I posted jobs here.

  • I downloaded Git to use it outside of Visual Studio. If I run Git remote commands on the command line, they worked just fine, so the problem was not in Git, but in the remote Git repository.

  • Whenever I perform a remote Git operation through Visual Studio, it uses a standard window dialog to enter a password. I noticed that I would always get an error if the Remember My Credentials field was checked. If I took it off, it would work well.

enter image description here

+6
source share
2 answers

Uncheck the box next to Remember my credentials.

Visual Stdio 2015 asked me to enter my credentials twice.

uncheck the box above. it worked for me

+5
source

Include this issue also in VS 2015.

  • Make sure your repository location is correct in your global settings (this also probably applies to repository settings if you are in a situation where you are changing credentials).
  • Your Windows Credential Manager may have outdated credentials. See this question to solve this problem.
0
source

Source: https://habr.com/ru/post/982076/


All Articles