Fix the quarto publish gh-pages error on windows

quarto
git
Author

Teresa Kubacka

Published

August 8, 2022

Sometimes quarto publish gh-pages hangs while creating the worktree.

For me the following worked (suggested by this tutorial and the commands quarto publish uses ).

First notice the extra directory in your git repository, called 2054a64 or similar.

Then do:

cd 2054a64 
git add -Af . 
git commit --allow-empty -m "Semi-manual deploy"
git remote -v
git push --force origin HEAD:gh-pages
cd ..
git worktree remove 2054a64 
git worktree prune