gh-stack icon indicating copy to clipboard operation
gh-stack copied to clipboard

sync might not work with worktree

Open gilles opened this issue 6 months ago • 2 comments

I get conflicts when syncing after a merge gh stack sync has a warning

⚠ Failed to fast-forward master: failed to run git: fatal: cannot force update the branch 'master' used by worktree at 'XXX'

seems the fix is to git rebase --onto origin/master but gh stack rebase does not have --onto

gilles avatar May 14 '26 17:05 gilles

I have a tested fix available on this branch, but repository permissions prevent me from creating a PR. Could a maintainer help me get the necessary access?

loganrosen avatar Jul 17 '26 22:07 loganrosen

@skarim , any updates on this? It happens with any command and is a pain when working with worktrees.

dgenezini avatar Jul 22 '26 20:07 dgenezini