From 67916bd76d7dd5d8dd5b26f3d508a320227cd7d4 Mon Sep 17 00:00:00 2001 From: Daniel Chen Date: Fri, 4 Sep 2026 21:08:32 -0700 Subject: [PATCH] ambiguous argument '#': move terminal comment to separate line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ❯ 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 [...] -- [...]' --- docs/publishing/github-pages.qmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/publishing/github-pages.qmd b/docs/publishing/github-pages.qmd index abe405c500..0ec19e4792 100644 --- a/docs/publishing/github-pages.qmd +++ b/docs/publishing/github-pages.qmd @@ -84,7 +84,8 @@ You usually do not need to do this --- `quarto publish gh-pages` will create the ``` {.bash filename="Terminal"} git checkout --orphan gh-pages -git reset --hard # make sure all changes are committed before running this! +# make sure all changes are committed before running this! +git reset --hard git commit --allow-empty -m "Initialising gh-pages branch" git push origin gh-pages ```