Replies: 2 comments 1 reply
-
|
Yeah /branch and /merge are super powerful and have improved my throughput massively. Here's what I recommend;
You can also just ask Code to merge that worktree in your default branch. If you get stuck Code can find the worktree for you, just tell it what you're looking for. But yeah they're just git worktrees. The new /undo command makes them less important for single tasks (you can now rewind to any previous user message). But they're still pretty vital if you want to have Code running multiple tasks on the same repo. |
Beta Was this translation helpful? Give feedback.
-
|
" I usually ensure all my changes are committed before I use" -- can you just confirm this is how you do this? If I have a worktree active and I want to commit those changes, do I run the command below from the root directory? Or do I cd to the worktree and run it from there? Or do I ask Code to do it? git add -A && git commit -m “ALPHA MILESTONE 510” && git push. <-- this is the command I have been using for saving and committing directly to my main branch |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone please give me an idea of how I can do my workflow with GitHub using /branch and /merge? I am willing to set up anything eg GitHub actions. My workflow right now is this: I make a Plan document in Plans folder and I use 5-6 instances of Codex to review the plan, iterate on it til its final. Once I'm satisfied, I have another agent implement it. Currently I have been having the agent implement it directly into my main branch, but I don't like this idea and I get that its not safe, so I want to start using /branch and /merge
My specific questions
Should I make the Plan on my main branch, commit it, make an Issue referring to it, then use /branch to write the code
When I /merge, is this making a PR that I can then review? or is it doing rebasing right into main? Does Merge remove the worktree directory so it's 100% completing that branch of work?
If my Coder instance (or my computer) crashes for whatever reason, and I already started a /branch, how can I get Coder agent to "Resume" from that branch? I don't mean resume the exact conversation, I mean continue the work in that branch. Do I have to cd to that directory and run Coder from there? Or do I just run from my root directory and run /branch again? I wasn't sure about this one
Beta Was this translation helpful? Give feedback.
All reactions