codex worktree怎么用

先进入主worktree

cd /Users/ww/coding/main_worktree

合并codex创建的worktree

git merge --ff-only codex/new-branch

验证合并结果

git log --oneline --decorate -3

没有问题就推送

git push

删除用完的wortree

git worktree remove  codex-worktree
git branch -d codex/new-branch

参考