bytree
v0.1.1
Published
Git worktree manager that copies excluded files
Readme
bytree
git worktree + your excluded files.
Why?
AI agents work best with personalized settings (.claude/, .codex/, IDE configs). When running multiple agents in isolated worktrees, git worktree doesn't copy these excluded files. bytree does.
Install
| Method | Command |
| -------- | ------------------------------------------------------------- |
| Go | go install github.com/bytaesu/bytree/cmd/bytree@latest |
| npm | npm install -g bytree |
| Homebrew | brew install bytaesu/tap/bytree |
| Binary | GitHub Releases |
Usage
First, define local settings you want copied across worktrees in .git/info/exclude:
/.claude/
/.codex/
/.github/prompts/bytree reads these patterns to decide what to copy.
bytree add <name>Create a worktree with excluded files copied automatically.
bytree add feature-x bytree add issue-123 --base developWorktrees are created at
../<repo>-bytree/<name>on branchbytree/<name>.bytree syncRe-sync excluded files into the current worktree.
cd path/to/worktree bytree syncbytree listList all bytree-managed worktrees.
bytree remove <name>Remove a worktree and its branch.
bytree excludedShow patterns in
.git/info/exclude.
How it works
Reads .git/info/exclude (not .gitignore), finds matching files, copies them. That's it.
License
MIT
