Can't login to GitHub
NOTE: Updating to Visual Studio 2017 15.5.7 or later should fix this. See https://github.com/github/VisualStudio/issues/949#issuecomment-367821388
I'm having some trouble logging on to GutHib to push new changes to my repository. I've just recently upgraded to Visual Studio 17. Everything used to work on VS 2015, but doesn't any longer.
- GitHub Extension for Visual Studio version: 2.2.0.8
- Visual Studio 2017 Professional: Ver 15.0.0+26228.9
- Windows 7 Pro SP1
Detailed steps:
- I have a local clone of a public (personal) repository. I've made changes to the local files
- Staged the changes.
- Attempted to push the changes.
- The GitHub login dialog appears. I've entered my username and password. I've confirmed that these are correct by logging in to the website.
- I get the following in my ouput pane on Visual Studio
Opening repositories:
### Local path, removed the actual path to anonymise ###
Error encountered while pushing to the remote repository: Git failed with a fatal error.
fatal: AggregateException encountered.
One or more errors occurred.
error: cannot spawn askpass: No such file or directory
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Pushing to https://github.com/### repo path ###.git
I have 2 factor enabled on my account.
Hello everybody. I'd like to announce GCM v1.17.1 Preview 1 is available for download. While this won't directly fix the issue with Visual Studio being able to authentication successfully with BitBucket, it should unblock you if you...
- Download and install the tool
- Use Git for Windows to interact with your BitBucket repository in a way that forces it to authenticate
- Logon using the Atlassian provided BitBucket interface.
Once you've done this, your credentials will be cached in the Windows Credential Manager, and Visual Studio should have access to them. Please, let me know how this goes and best of luck.
PS. Yes, we're still working towards a more permanent solution but I wanted to provide a possible work around as early as possible.
Just installed V1.17.1 preview 1 and it solved my auth problem. Thanks!
@whoisj not worked installing GCM v1.17.1 Preview 1 ,but after downloading the source with .zip file then i applied manually @KevinRamharak suggestion then works for me.
@whoisj it didn't work with the .exe file. But when I have downloaded the .zip file and manually copied the files into \Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core it worked. Thanks @KevinRamharak and @whoisj !
#MicrosoftShouldHireKevin
@whoisj It's ok. Copy the content of gcmw-v1.17.1-preview.1.zip to c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core\ dir, and it solved my auth problem. The problem was same on Win7 and Win10, but @KevinRamharak suggestion only work on Win7. Thanks!
@willandus My problem was in win10 and Kevin solution works fine for me.
#MicrosoftShouldNotMakeSuchStupidMistakesInTheFirstPlaceBecauseWhatIsTestingForAndTls1.2ExistsSinceALongLongTime
also
#UpdatesShouldBeInstalledByWindowsUpdateBecauseSomeUsersInEnterprisesDontHaveAdminPrivilegesYouStupidMorons
#AndThatMeansYourStupidPolicyCondemsUsToPutPlaintextPasswordsIntoGitConfigFilesWhichIsTotallyInsecureAndApplySomeCmdLineFuEveryTimeWeCreateAnewProjectAndItLimitsUsToDotNetCore20BecauseThatsWhatsNowInstalledAndWeCannotDoUpdatesOurselvesAndOurAdminIsALazy"Person"
Also
#WhyDoesInstallingTheDotNetSdkAndRuntimeRequireAdminPrivileges ?
#YouCanAlsoSetRegistryKeysInHKCUandYouCanAlsoSetPathEnvironmentVariablesForTheLocalUserOnlyJustInCaseYouDontKnow
#FU-FU-FU
#❤JetBrainsRider
This sure taught me not to get the latest updates for Viz-Studio...
I'd be using Rider (I have the JetBrains AllProductsPack) if it wasn't lacking some crucial features
The 2018-EAP comes with publishing feature & experimental Blazor support. I use Rider EAPs since I'm on Linux. At work however, I'm forced to use Visual-Studio 2017 (and can't update because I don't have admin rights, and the admin [just tell me if you need something] just doesn't do it no matter how many times you tell him)...
@KevinRamharak it's working, thanks!
@KevinRamharak Thank you! This got me back up and running.
Just wanted to mention that what KevinRamharak said worked for me as well!
Latest update 15.8 broke it again
@mpalladinru It was the one before 15.8 that first broke it for me. I'm assuming that meant you had it fixed manually somehow and it overwrote it?
Make sure to use this path if you are using the preview of VS. Latest 15.8 update also breaks it for me, I have to do this each time.
C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core
The latest VS update (15.8) broke it again. I'm just copy the content of gcmw-v1.17.1-preview.1.zip to c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core\ but it was not enough. Then overwrite the content of the directory above with @KevinRamharak 's suggestion. The content of gcmw-v1.17.0.zip was solved the atuh problem for me.
@JoeHz yes, I unpacked archive contents and it was working until yesterday, when update arrived. So I unpacked archive contents again and it working again now
Still broken in 15.8.1
@whoisj just wanted to say that this problem seems to be escalating, we've had more reports of the same problem over at #1531.