`gt create -i` doesn't seem to be respected; it ju...
# report-bugs
e
gt create -i
doesn't seem to be respected; it just ran like a normal gt create and added a branch on top of my current stack (instead of in between the top and the downstack)
p
(If applicable) To help us repro, please send the following if you haven't already: - PR links, screenshots, and/or debug output if applicable - Repro steps - Does this happen consistently? Just to you or others on your team also? - Is this a regression? Is the problem new? - If you're having an issue with the CLI, please send us debug logs using
gt feedback --with-debug-context <any message>
hey Edward, what version of
gt
CLI are you using? I'll try reproduce
e
I'm on 1.6.6
Screen Recording 2025-07-22 at 10.47.05 AM.mov
also, tried to submit via gt feedback and it didn't work
image.png
p
Thanks, we did receive your CLI logs 👍
I tested and it works as intended. The new branch is added between the current and its child. If you use it at the top of the stack there is no child so it becomes the top branch.
e
if you're on edit1, isn't its child main?
oh, children are upstack not downstack
Is there a way to do what I'd like? Since it's a pretty frequent manuever to say "oh I need something in a dependency changed; let me make that change and commit it downstack to my current branch"
p
You can use
gt move
to change a branch's position within a stack after the fact, but I don't think there's a way from
gt create
e
gt move would leave it dangling, so you need
gt reorder