Skip to content

feat: support custom worktree directory name - #237

Draft
yoichi wants to merge 2 commits into
k1LoW:mainfrom
yoichi:custom-dirname
Draft

yoichi wants to merge 2 commits into
k1LoW:mainfrom
yoichi:custom-dirname

Conversation

@yoichi

@yoichi yoichi commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

work in progress implementation for #170

For example, if you want to place linked worktrees at the same
directory level as the main worktree with branch name suffix, do as
follows:
  git config wt.basedir ".."
  git config wt.dirname "{gitroot}-{worktree}"
These files were introduced in 34b2b20 (Add .gitignore and README.md
to basedir on worktree creation, 2026-01-21) to distinguish the
worktrees under the basedir from the parent working tree. They are not
necessary if linked worktrees are placed outside of the main worktree.
@yoichi
yoichi marked this pull request as draft October 25, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant