Repository navigation
v0.7.1
What's New
π Remote Branch Support
Create worktrees directly from remote branches without checking them out locally first! No more git fetch && git checkout dance.
In TUI:
- Remote branches shown with π globe icon in blue color
- Automatic local tracking branch creation
- Visual distinction: locals (β), remotes (π)
- Info banner: "Remote branches (origin/*) are shown with globe icon"
Example:
gren
# Press 'n' β "Use existing branch" β Select origin/feature-auth
# Automatically creates local tracking branch + worktree!Thanks to @jaranflaath for this feature request! π
π€ Claude Code Skill Installation
Install a comprehensive gren skill for Claude Code that enables natural language worktree management.
One command to install:
gren install-skill
# Installs to ~/.claude/skills/gren/Then use natural language with Claude:
- "create a new worktree for feature-auth"
- "help me generate a post-create script"
- "delete the old feature worktree"
Claude automatically detects when you need gren and uses the skill!
Skill includes:
- SKILL.md - Main skill with auto-invocation (6.6 KB)
- reference.md - Complete command reference (9.1 KB)
- examples.md - Real-world usage patterns (14 KB)
Inspired by @erik-agens' skill installation pattern β€οΈ
Improvements
- Better .gitignore: Fixed pattern to only ignore
/grenbinary, notskills/gren/ - Comprehensive testing: Full TDD approach with test coverage for new features
- Help updates:
install-skillcommand now shown in--helpoutput - Embedded skills: Skill files embedded in binary for zero-dependency installation
Technical Details
Remote Branch Implementation
- Added
IsRemotefield toBranchStatusstruct - Updated
getAvailableBranchesForWorktree()to fetch both local and remote branches - Smart filtering: removes remote branches that have local tracking (avoids duplicates)
- Automatic
origin/prefix stripping when creating worktree - Visual styling with
StatusRemoteStyle
Skill Installation System
//go:embed skills/gren/*for embedding skill filesSetSkillFS()initialization in main.goinstall-skillcommand with--forceand--pathflags- File conflict detection with interactive prompts
- Preserves init workflow (still uses embedded
gren_setup.md)
Installation
Homebrew (macOS/Linux)
brew tap langtind/tap
brew install gren
# or upgrade
brew upgrade grenInstall Skill (after installing gren)
gren install-skillGo
go install github.com/langtind/gren@v0.7.1Download Binary
Download the appropriate binary for your platform below.
Full Changelog: v0.7.0...v0.7.1