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  

删除已用完的工作树(worktree)

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

参考