首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >shh passphrase不允许我上传到github页面

shh passphrase不允许我上传到github页面
EN

Stack Overflow用户
提问于 2020-09-29 03:52:10
回答 1查看 21关注 0票数 0

我正试着上传到github页面。当我运行npm run deploy时,我用于代码所在的存储库的密码短语不起作用。

是不是我必须将github.io添加到配置文件中?

/Users/sara/.ssh/config

代码语言:javascript
复制
#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

我该怎么做呢?

EN

回答 1

Stack Overflow用户

发布于 2020-09-29 14:44:33

是否需要将github.io添加到配置文件中?

不,您不能直接推送到github.io。您正在推送到常规的GitHub存储库,您已经为其设置了一个发布分支,使其有资格成为项目Github页面。

只要SSH代理加载了您的密码,就不应该阻止npm run

您需要确保使用正确的SSH URL:

代码语言:javascript
复制
github.com-SaraLance:<user>/<repo>
# or
github.com-sara-work:<user>/<repo>

如果npm使用常规的git@github.com:<user>/<repo> URL,那么您的任何键都不会被考虑。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64108739

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档