Skip to content

Support specifying a particular worktree when running commands #21

Description

@konweb

Hi, thank you for this useful tool!

I’d like to request a feature that allows running a command against a specific worktree directly.

For example, something like:

gtr feature/hoge npm run dev

This would run npm run dev inside the feature/hoge worktree.

Currently, it seems gtr does not provide a simple way to target a specific worktree by name/path when executing commands. This feature would be helpful for workflows where multiple worktrees are used actively and commands need to be executed in a specific one.

Feature request summary:
• Add support for specifying a worktree as the execution target.
• CLI format could be gtr <command...>
• gtr should detect the worktree and run the given command inside it.

Thank you!

Activity

  1. helizaga commented on Nov 22, 2025

    @helizaga
    Contributor

    Good idea! This PR addresses this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions