rsworktree

Crates.iorsworktree
lib.rsrsworktree
version0.1.0
created_at2025-09-26 00:42:57.647866+00
updated_at2025-09-26 00:42:57.647866+00
descriptionCLI helper for managing Git worktrees under a dedicated .rsworktree directory
homepagehttps://github.com/ozan/rust-git-worktree
repositoryhttps://github.com/ozan/rust-git-worktree
max_upload_size
id1855268
size535,952
Ozan Kaşıkçı (ozankasikci)

documentation

https://docs.rs/rsworktree

README

rsworktree

rsworktree is a Rust CLI for managing Git worktrees in a single repo-local directory (.rsworktree). It provides a focused, ergonomic workflow for creating, jumping into, listing, and removing worktrees without leaving the terminal.

Commands

  • rsworktree create <name> [--base <branch>]

    • Create a new worktree under .rsworktree/<name>, branching at <name> by default or from --base if provided.
    • Demo: Create demo
  • rsworktree cd <name> [--print]

    • Spawn an interactive shell rooted in the named worktree. Use --print to output the path instead.
    • Demo: CD demo
  • rsworktree ls

    • List all worktrees tracked under .rsworktree, showing nested worktree paths.
    • Demo: List demo
  • rsworktree rm <name> [--force]

    • Remove the named worktree. Pass --force to mirror git worktree remove --force behavior.
    • Demo: Remove demo

Environment

Set RSWORKTREE_SHELL to override the shell used by rsworktree cd (falls back to $SHELL or /bin/sh).

Installation

Install from crates.io with:

cargo install rsworktree

After the binary is on your PATH, run rsworktree --help to explore the available commands.

Commit count: 0

cargo fmt