Reactjs 发布我的网站时无法从远程存储库读取

Reactjs 发布我的网站时无法从远程存储库读取,reactjs,git,github,github-pages,docusaurus,Reactjs,Git,Github,Github Pages,Docusaurus,我正在使用docusaurus为产品编写文档网站。我对该网站进行了一些定制,并尝试将其发布到GitHub上 在本教程之后,我配置了网站/siteConfig.js,运行了npm运行构建,并使用了: $ GIT_USER=<GIT_USER> CURRENT_BRANCH=master USE_SSH=true npm run publish-gh-pages 它失败了。显示了以下错误消息 > @ publish-gh-pages /Users/user_name/Deskto

我正在使用docusaurus为产品编写文档网站。我对该网站进行了一些定制,并尝试将其发布到GitHub上

在本教程之后,我配置了
网站/siteConfig.js
,运行了
npm运行构建
,并使用了:

$ GIT_USER=<GIT_USER> CURRENT_BRANCH=master USE_SSH=true npm run publish-gh-pages
它失败了。显示了以下错误消息

> @ publish-gh-pages /Users/user_name/Desktop/calender/week_3/docusaurus-exp/website
> docusaurus-publish

master
https://github.com/my_github_user_name/docusaurus-exp.git
generate.js triggered...
feed.js triggered...
feed.js triggered...
sitemap.js triggered...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
Site built successfully. Generated files in 'build' folder.
89b1f1bd2f7e2403a08a194a89379916edcbb540
Cloning into 'docusaurus-exp-gh-pages'...
ssh_exchange_identification: read: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error: git clone failed
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ publish-gh-pages: `docusaurus-publish`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ publish-gh-pages script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/user_name/.npm/_logs/2019-07-18T07_15_37_998Z-debug.log

这个问题实际上与多库萨乌罗斯无关


当我试图用
USE\u SSH=true
发布站点tp
gh pages分支时,出现了错误。事实上,我没有在这台机器上存储SSH。通过romoving此参数(或设置
USE\u SSH=false
)解决了该问题。

该问题实际上与Docusaurus无关


当我试图用
USE\u SSH=true
发布站点tp
gh pages分支时,出现了错误。事实上,我没有在这台机器上存储SSH。通过romoving此参数(或设置
USE\u SSH=false
)解决了此问题。

此参数的可能重复项似乎不是Docusaurus问题。此参数的可能重复项似乎不是Docusaurus问题。
> @ publish-gh-pages /Users/user_name/Desktop/calender/week_3/docusaurus-exp/website
> docusaurus-publish

master
https://github.com/my_github_user_name/docusaurus-exp.git
generate.js triggered...
feed.js triggered...
feed.js triggered...
sitemap.js triggered...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
Site built successfully. Generated files in 'build' folder.
89b1f1bd2f7e2403a08a194a89379916edcbb540
Cloning into 'docusaurus-exp-gh-pages'...
ssh_exchange_identification: read: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error: git clone failed
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ publish-gh-pages: `docusaurus-publish`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ publish-gh-pages script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/user_name/.npm/_logs/2019-07-18T07_15_37_998Z-debug.log