Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git remote operations inside Visual Studio 2013 result in the error "A specified logon session does not exist. It may already have been terminated"

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:

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. 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.

  2. 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.

enter image description here

like image 515
Mark Dornian Avatar asked Feb 06 '15 01:02

Mark Dornian


1 Answers

Unchecked "Remember My Credentials" checkbox.

Visual Stdio 2015 asked me enter credentials two times.

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

like image 106
Suhas Dhongade Avatar answered Sep 17 '22 12:09

Suhas Dhongade