我正试着上传到github页面。当我运行npm run deploy时,我用于代码所在的存储库的密码短语不起作用。
是不是我必须将github.io添加到配置文件中?
在/Users/sara/.ssh/config中
#user1 account
Host github.com-sara-work
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_work
IdentitiesOnly yes
#user2 account
Host github.com-SaraLance
HostName github.com
User git
IdentityFile ~/.ssh/SaraLance
IdentitiesOnly yes我该怎么做呢?
发布于 2020-09-29 14:44:33
是否需要将
github.io添加到配置文件中?
不,您不能直接推送到github.io。您正在推送到常规的GitHub存储库,您已经为其设置了一个发布分支,使其有资格成为项目Github页面。
只要SSH代理加载了您的密码,就不应该阻止npm run。
您需要确保使用正确的SSH URL:
github.com-SaraLance:<user>/<repo>
# or
github.com-sara-work:<user>/<repo>如果npm使用常规的git@github.com:<user>/<repo> URL,那么您的任何键都不会被考虑。
https://stackoverflow.com/questions/64108739
复制相似问题