Skip to content

strazan/sigtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Sigtree

Bare-repo git worktree manager

image

Install

curl -fsSL https://raw.githubusercontent.com/strazan/sigtree/main/install.sh | bash

Usage

Set up a new repo

sigtree init git@github.com:org/repo.git

Creates a bare-repo layout:

repo/
  .bare/            ← bare git repo
  repo-main/        ← primary worktree on main

Start working on a branch

cd repo/repo-main
sigtree my-feature

Jump to a worktree

sigtree go

Opens an interactive fuzzy search (requires fzf). Falls back to a numbered list if fzf isn't installed. The installer adds a shell wrapper so sigtree go can cd in your current shell.

Clean up stale worktrees

cd repo/repo-main
sigtree clean

Scans for stale worktrees and prompts to remove each one. A worktree is stale if its branch has been merged into main, or if it has no commits in the last N days (default 30).

Configuration

Create ~/.config/sigtree/config for global settings, or .sigtree in the repo root for per-repo settings. Per-repo overrides global.

# Commands to run after worktree creation (multiple lines run in order)
setup = pnpm install --silent
setup = pnpm dlx turbo build

# Command to launch at the end (default: claude)
launch = claude

# What counts as stale for `sigtree clean` (default: merged, 30d)
#   merged - branch is merged into main
#   <N>d   - no commits in N days
# Combine with comma: merged, 14d
stale = merged, 30d

If no setup is configured, sigtree tries to auto-detect package manager from lockfiles

About

bare-repo worktree manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages