Osc*_*yes 11 git atlassian-sourcetree
我是github的新手,我使用sourcetree为我的git gui,我已经使用了几天,但现在最近我得到一个错误,说
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Nosthertus/nodejs_Chat.git/'
Run Code Online (Sandbox Code Playgroud)
当我试图再次向github注册时返回错误
authorization failed
Run Code Online (Sandbox Code Playgroud)
也许是因为我做了一个双因素安全,我想用github制作一个shh-key,但是没有解决问题,必须有一种方法让我的gui连接到我的github帐户而无需登录访问,如何我能解决这个问题吗?
ntg*_*ntg 32
如果您的密码最近更改了,请选择存储库,转到工具 - >选项,转到验证选项卡并删除存储的密码.这将使您在下次尝试连接时请求新密码.
在OSX上:转到SourceTree - >首选项 - >网络并删除其中的默认用户名.
这是因为我做了一个两因素安全
在Heartbleed 漏洞之后,GitHub 重置了在我们的服务器上解决漏洞之前处于活动状态的所有浏览器会话。
检查您的 PAT(个人访问令牌)在您的 GitHub 帐户的应用程序部分是否仍然有效。
请注意,ssh 密钥对 https url 没有影响,例如https://github.com/Nosthertus/nodejs_Chat.git
您是否需要使用 ssh 密钥,您至少应该更改原始 url:
git remote set-url origin git@github.com:Nosthertus/nodejs_Chat.git
Run Code Online (Sandbox Code Playgroud)