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

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

提交回复
热议问题