I am trying to set up a shiny server with the manual of Dean Attali. So far I made the shiny server work. This should be proofed by the fact that the "Welcome to Shiny Server" page shows up when I navigate to the server ip. The problem is that I cannot connect my shiny server to GitHub like in step 8.2 of the manual. I tried it a several times now, but I am getting this error message:
error: src refspec master does not match any.
error: failed to push some refs to 'origin'
sudo apt-get -y install git
echo "# shiny-server" >> README.md
git commit -m "first commit"
git config --global user.email "firstname.lastname@example.org"
git config --global user.name "gituser"
git remote add origin email@example.com:gituser/shiny-server.git
There is a step missing here:
git init echo "# shiny-server" >> README.md git commit -m "first commit"
The missing step is a
git add, to add the
README.md to Git.
git add step,
git commit did nothing. As such, the repository doesn't have any commits, and therefore there's nothing to push,
resulting in the error that you observed.
This way it will work:
git init echo "# shiny-server" >> README.md git add --all git commit -m "first commit"