Skip to content

[publish] Avoid gh-pages branch creation error when issue is about remote access permission #9585

@mhollanders

Description

@mhollanders

Bug description

I cloned my website to make some changes and when I tried quarto publish gh-pages I get the following errors:

J6M2GFCW45:quantecol-site s447341$ quarto publish gh-pages
? Publish site to https://quantecol.com.au using gh-pages? (Y/n) › Yes
Saved working directory and index state WIP on main: b23d059 test2
fatal: a branch named 'gh-pages' already exists
Your branch is up to date with 'origin/main'.
Already on 'main'
On branch main
Your branch is up to date with 'origin/main'.

I saw here that the issue has apparently been documented but I don't know how to fix it. I'm not savvy enough with Git to dare try and figure it out myself, any tips?

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Your environment

No response

Quarto check output

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions