### Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1509

<div type='discussions-op-text'>

<sup>Originally posted by **jmgirard** July 23, 2022</sup>
Sometimes when I run `quarto publish gh-pages`, it hangs (i.e., gets stuck) on "Preparing worktree."

     * branch            gh-pages   -> FETCH_HEAD
    Rendering for publish:
    
    ...

    branch 'gh-pages' set up to track 'origin/gh-pages'.
    HEAD is now at 2054a64 Built site for gh-pages
    Preparing worktree (resetting branch 'gh-pages'; was at 2054a64)

Any ideas how to troubleshoot, fix, or prevent this?</div>
cderv
2022-08-16T11:10:50Z
jjallaire
v1.2
closed
Git hangs on preparing worktree
https://github.com/quarto-dev/quarto-cli/issues/1916