I'd like to rename my trunk. I've already created...
# how-do-i
a
I'd like to rename my trunk. I've already created 3 stacks off this. Any nice way?
The trunk/stacks have not been submitted to GitHub yet - if that helps.
Like any thoughts on this, if people here know.
j
Can you give more context on why you’d like to do this? The trunk branch is meant to be the shared/mainline that stacks merge into (eg main) — not a branch that represents a PR. You can change your local trunk with
gt init
but we purposely don’t allow renaming it.
a
Sure @Jacob Gold, it's to support my "feature trunk" workflow: https://graphite-community.slack.com/archives/C02ENKC0A9X/p1705089754296489
j
I see - best way is probably to rename with git, then change your trunk with init. You will need to re-track any branches based on the trunk branch. There may be other gotchas here as this isn’t a workflow we’ve designed for, so tread with caution.
😵 1