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

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

提交回复
热议问题