terris
A small, friendly Git worktree manager for everyday use.
What it does
- Create new worktrees quickly (or jump to existing ones)
- List existing worktrees
- Remove worktrees safely
- Print a worktree path for
cd "$(terris <branch>)" - Simplify workflows with autonomous agents that work in the terminal in the same repository
Install
From crates.io:
From source:
Usage
# Jump to a worktree. Create branch and worktree if missing.
# List worktrees
# Delete a worktree
Shell completion
Generate a completion script and source it in your shell:
# Bash
# Zsh
fpath=(/tmp )
&&
# Fish
Install permanently (recommended):
# Bash (user-level)
# Bash (system-wide)
# Zsh
fpath=(/.zsh/completions )
&&
# Fish
How it works
terris <branch>creates the worktree if missing and prints the path every time.- If the branch exists, it is used directly.
- If the branch does not exist, it is created from the current HEAD.
- Default path is
~/.terris-worktrees/<repo-name>/<branch>-<random-key>.
Notes
- Works from any directory inside a git repo.
- The tool shells out to
git, sogitmust be installed and available inPATH.
Name
The project is named after the Terris people, responsible for preserving the knowledge of the civilization.
License
MIT