Attempting push on git and receiving “could not read Username for 'https://github.com': terminal prompts disabled”

后端 未结 10 1004
情歌与酒
情歌与酒 2020-12-29 01:24

I\'m using Visual Studio, and the GitHub Extension. I am able to sign in, then clone my team\'s repository, and then pull changes successfully.

When it comes time to

相关标签:
10条回答
  • 2020-12-29 02:04

    This worked for me:

    Deleting the file %localAppData%\GitCredentialManager\tenant.cache and then re-trying your logon.

    0 讨论(0)
  • 2020-12-29 02:06

    In windows go to credentials manager and check if generic credentials list has the below entries

    git:https://github.com

    https://github.com

    If these entries are not present add these entries with username and password and it should work.

    0 讨论(0)
  • 2020-12-29 02:09

    As per my comment. You can include your username in the remote URL (similar to FTP).

    Example without password (SSH):

    git remote set-url origin git@github.com/username/repo.git

    Example with password (https)

    https://name:password@github.com/username/repo.git

    Source: Git push requires username and password

    Updated 5/14/2018 to correct github.org to github.com in the original answer

    0 讨论(0)
  • 2020-12-29 02:13

    I have updated my Visual studio 2017 and restarted it. Now it's working fine.My updated Visual studio version:

    0 讨论(0)
  • 2020-12-29 02:17

    I faced the same issue after I have only TLS1.2 enabled on my PC. After enabling TLS 1.1, SSL.x the issue was resolved. For enabling and disabling I used IISCrypto software. Hope that helps the team and other users.

    0 讨论(0)
  • 2020-12-29 02:19

    This happened to me when syncing. Updating visual studio to the latest version did it for me.

    0 讨论(0)
提交回复
热议问题