【发布时间】:2017-03-11 19:51:46
【问题描述】:
我正在尝试使用manual of Dean Attali 设置闪亮的服务器。到目前为止,我让闪亮的服务器工作。当我导航到服务器 ip 时,会出现“欢迎使用 Shiny Server”页面这一事实可以证明这一点。问题是我无法像手册的步骤 8.2 那样将闪亮的服务器连接到 GitHub。我现在尝试了几次,但我收到此错误消息:
错误:src refspec master 不匹配任何内容。
错误:未能将一些引用推送到“原点”
这是我的代码:
sudo apt-get -y install git
cd /srv/shiny-server
git init
echo "# shiny-server" >> README.md
git commit -m "first commit"
git config --global user.email "user@user.com"
git config --global user.name "gituser"
git remote add origin git@github.com:gituser/shiny-server.git
电子邮件地址“user@user.com”和用户名“gituser”只是假的。
我已经在 GitHub 的存储库设置中部署了适配密钥。
希望你能帮助我!在此先感谢:)
【问题讨论】:
标签: git github shiny-server