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

后端 未结 10 1005
情歌与酒
情歌与酒 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:21

    What worked for me was to disconnect from all the existing connections in Visual Studio, remove them one-by-one and connect from scratch. Then immediatelly I was able to clone the repository again.

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

    Check that Windows does not have a pending update. If it does, update and restart.

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

    Using Windows Credential manager

    After seeting username, password in Windows Credential Manager, set git config to read from credential manager. Open gitbash, run command:
    git config --global --add credential.helper manager

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

    In my case the same issue coming on below scenario:

    We are under corporate network. So we have our own proxy. When we try cloning we cant able to download due to same error.

    I added proxy url in our git config.

    [http]
     proxy=http://YourNameHere:YourPasswordHere@proxy.aaa.com:6050/
     sslVerify = false
    
    [https] 
    proxy=http://YourNameHere:YourPasswordHere@proxy.aaa.com:6050/
     sslVerify = false
    

    Issue disappears and i can do all git operations.

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