Skip to content

docs(publish): ambiguous argument '#': move terminal comment to separate line - #2180

Open
chendaniely wants to merge 1 commit into
quarto-dev:mainfrom
chendaniely:patch-5
Open

docs(publish): ambiguous argument '#': move terminal comment to separate line#2180
chendaniely wants to merge 1 commit into
quarto-dev:mainfrom
chendaniely:patch-5

Conversation

@chendaniely

Copy link
Copy Markdown
Contributor

In the quarto publish > gh-pages page the current instructions for creating a gh-pages branch manually has this line:

git reset --hard # make sure all changes are committed before running this!

However when you run this command as-is you get an error

> git reset --hard # make sure all changes are committed before running this!

fatal: ambiguous argument '#': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]'

This PR moves the comment on its own separate line before the git reset command so the entire chunk can be copy+pasted without an error.

❯ git reset --hard # make sure all changes are committed before running this!

fatal: ambiguous argument '#': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
@chendaniely chendaniely changed the title ambiguous argument '#': move terminal comment to separate line docs: ambiguous argument '#': move terminal comment to separate line Sep 5, 2026
@chendaniely chendaniely changed the title docs: ambiguous argument '#': move terminal comment to separate line docs(publish): ambiguous argument '#': move terminal comment to separate line Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant