Following instructions for quarto publish gh-pages - "fatal: a branch named 'gh-pages' already exists" #6972
Unanswered
elsherbini
asked this question in
Q&A
Replies: 2 comments
-
I had success finally. I had to remove the gh-pages branch from both local and remote (in spite of the instructions saying to make the orphan branch manually) using
So I ran
|
Beta Was this translation helpful? Give feedback.
0 replies
-
These are known current documentation issues tracked: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm trying to publish a website on gh-pages. I'm using windows and the repo is on a OneDrive directory. I usually use ubuntu, so I'm not sure all the implications of working on a OneDrive directory. Edit: I just tried doing it from scratch in a non-OneDrive directory and got the same error, so I don't think that's the problem
here is the repo, just taking from andrewpbrays site for posit::conf 2023 to test deploying:
https://github.com/elsherbini/workshop_website_test
I followed the instructions on https://quarto.org/docs/publishing/github-pages.html#source-branch to set up gh-pages to make the orphan gh-pages branch, and then checkout the main branch again and tried "quarto publish gh-pages"
Googling around, some people not using quarto suggested manually deleting
node_modules/gh-pages/.cache
, but I've searched everywhere for that and can't find it.Beta Was this translation helpful? Give feedback.
All reactions