You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I first ran deploy to the gh-pages branch, then re-read the documentation and realized that it should be master. When I changed the deploy branch, however, I could no longer deploy. I would always get this error:
error: src refspec master does not match any.
This took a while to figure out, but it turned out that the git repository created by octopress deploy was saved in .deploy, and the branch was still gh-pages. Git was failing because the master branch did not exist. To fix this, I had to delete the .deploy directory manually and rerun octopress deploy.
It would be nice if the deploy script checked that the branch in the .deploy directory matched the branch given by the current value of the branch parameter.
The text was updated successfully, but these errors were encountered:
I first ran deploy to the
gh-pages
branch, then re-read the documentation and realized that it should bemaster
. When I changed the deploy branch, however, I could no longer deploy. I would always get this error:This took a while to figure out, but it turned out that the git repository created by
octopress deploy
was saved in.deploy
, and the branch was stillgh-pages
. Git was failing because themaster
branch did not exist. To fix this, I had to delete the.deploy
directory manually and rerunoctopress deploy
.It would be nice if the deploy script checked that the branch in the
.deploy
directory matched the branch given by the current value of thebranch
parameter.The text was updated successfully, but these errors were encountered: