我输入" hexo deploy"后遇到此问题在终端。它问了我GitHub的用户名和密码。问题是我只能输入我的用户名而不能输入我的密码。
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
On branch master
nothing to commit, working tree clean
Username for 'https://github.com': Yancey2126
Password for 'https://Yancey2126@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Yancey2126/yancey2126.github.io.git/'
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Yancey2126/yancey2126.github.io.git/'
我所能做的就是按Return键并获得失败的身份证明。谁知道发生了什么?非常感谢〜
答案 0 :(得分:0)
检查git config credential helper
的输出:您可能有密码缓存,它会自动为用户Yancey2126
提供密码。
例如,对于Git for Windows,您将使用最新的Microsoft Git Credential Manager for Windows 在Mac上,您将拥有the osxkeychain。