我开始使用Visual Studio代码,我试图将我的测试项目保存到GitHub中,但是Visual总是询问我的GitHub凭据。
我已经安装在我的个人电脑GitHub桌面和Git。我已经跑了:
git config --global credential.helper wincred但是Visual代码仍然要求提供凭据。
我怎么才能解决这个问题?
下面是我的.gitconfig文件,位于用户配置文件文件夹中:
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[user]
name = ddieppa
[user]
email = fake@live.com
[credential]
helper = wincred下面是请求凭据的弹出窗口:

我在弹出窗口中输入了我的GitHub凭据,但仍然在Visual代码中的Git输出窗口中获得此错误:
remote: Anonymous access to ddieppa/LineOfBizApp.git denied.
fatal: Authentication failed for 'https://github.com/ddieppa/LineOfBizApp.git/'发布于 2017-02-14 06:23:48
使用没有密码的SSH密钥。
也许这对一些人来说是显而易见的(对我来说不是这样)。如果你绝对需要密码的话,它也不能解决这个问题,但在我对Mac的情况下,这是一个不错的妥协。
https://stackoverflow.com/questions/34400272
复制相似问题