@rajubepary/gwt
v0.1.0
Published
A Git worktree and PR management CLI tool for streamlined development workflows
Readme
gwt
A Git worktree and PR management CLI tool for streamlined development workflows
Usage
$ npm install -g @rajubepary/gwt
$ gwt COMMAND
running command...
$ gwt (--version)
@rajubepary/gwt/0.1.0 linux-x64 node-v22.23.2
$ gwt --help [COMMAND]
USAGE
$ gwt COMMAND
...Commands
gwt ai open [BRANCHNAME]gwt ai reviewgwt archive [BRANCHNAME]gwt cd [BRANCHNAME]gwt help [COMMAND]gwt initgwt lsgwt new [BRANCHNAME]gwt open [BRANCHNAME]gwt pr create [BRANCHNAME]gwt pr merge [BRANCHNAME]gwt pr view [BRANCHNAME]gwt rm [BRANCHNAME]gwt unarchive [BRANCHNAME]
gwt ai open [BRANCHNAME]
Run the AI command in a git worktree
USAGE
$ gwt ai open [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to run AI in
DESCRIPTION
Run the AI command in a git worktreeSee code: src/commands/ai/open.ts
gwt ai review
Run an AI code review against a target branch
USAGE
$ gwt ai review [-t <value>]
FLAGS
-t, --target=<value> Target branch to review against
DESCRIPTION
Run an AI code review against a target branchSee code: src/commands/ai/review.ts
gwt archive [BRANCHNAME]
Archive a git worktree
USAGE
$ gwt archive [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to archive
DESCRIPTION
Archive a git worktreeSee code: src/commands/archive.ts
gwt cd [BRANCHNAME]
Change terminal to a git worktree directory
USAGE
$ gwt cd [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to change into
DESCRIPTION
Change terminal to a git worktree directorySee code: src/commands/cd.ts
gwt help [COMMAND]
Display help for gwt.
USAGE
$ gwt help [COMMAND...] [-n]
ARGUMENTS
[COMMAND...] Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for gwt.See code: @oclif/plugin-help
gwt init
Initialize gwt in the current repository
USAGE
$ gwt init [-f]
FLAGS
-f, --force Overwrite existing config file if it exists
DESCRIPTION
Initialize gwt in the current repositorySee code: src/commands/init.ts
gwt ls
List all git worktrees
USAGE
$ gwt ls [-a]
FLAGS
-a, --archive Include archived worktrees
DESCRIPTION
List all git worktreesSee code: src/commands/ls.ts
gwt new [BRANCHNAME]
Create a new git worktree
USAGE
$ gwt new [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the new branch
DESCRIPTION
Create a new git worktreeSee code: src/commands/new.ts
gwt open [BRANCHNAME]
Open a git worktree directory in the default editor
USAGE
$ gwt open [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to open
DESCRIPTION
Open a git worktree directory in the default editorSee code: src/commands/open.ts
gwt pr create [BRANCHNAME]
Create a pull request for a worktree branch
USAGE
$ gwt pr create [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to create a PR for
DESCRIPTION
Create a pull request for a worktree branchSee code: src/commands/pr/create.ts
gwt pr merge [BRANCHNAME]
Merge a pull request for a worktree branch, fetch main, and archive the worktree
USAGE
$ gwt pr merge [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to merge PR for
DESCRIPTION
Merge a pull request for a worktree branch, fetch main, and archive the worktreeSee code: src/commands/pr/merge.ts
gwt pr view [BRANCHNAME]
Review a pull request for a worktree branch
USAGE
$ gwt pr view [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to view PR for
DESCRIPTION
Review a pull request for a worktree branchSee code: src/commands/pr/view.ts
gwt rm [BRANCHNAME]
Remove a git worktree and its branch
USAGE
$ gwt rm [BRANCHNAME] [-a] [-f] [-r]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to remove
FLAGS
-a, --archive Remove an archived worktree
-f, --force Force removal without prompting
-r, --[no-]remote Delete the remote branch as well
DESCRIPTION
Remove a git worktree and its branchSee code: src/commands/rm.ts
gwt unarchive [BRANCHNAME]
Unarchive a git worktree and run setup scripts
USAGE
$ gwt unarchive [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to unarchive
DESCRIPTION
Unarchive a git worktree and run setup scriptsSee code: src/commands/unarchive.ts
gwt archive [BRANCHNAME]gwt cd [BRANCHNAME]gwt help [COMMAND]gwt initgwt lsgwt new [BRANCHNAME]gwt pr create [BRANCHNAME]gwt pr merge [BRANCHNAME]gwt pr view [BRANCHNAME]gwt rm [BRANCHNAME]gwt unarchive [BRANCHNAME]
gwt archive [BRANCHNAME]
Archive a git worktree
USAGE
$ gwt archive [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to archive
DESCRIPTION
Archive a git worktreeSee code: src/commands/archive.ts
gwt cd [BRANCHNAME]
Change terminal to a git worktree directory
USAGE
$ gwt cd [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to change into
DESCRIPTION
Change terminal to a git worktree directorySee code: src/commands/cd.ts
gwt help [COMMAND]
Display help for gwt.
USAGE
$ gwt help [COMMAND...] [-n]
ARGUMENTS
[COMMAND...] Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for gwt.See code: @oclif/plugin-help
gwt init
Initialize gwt in the current repository
USAGE
$ gwt init [-f]
FLAGS
-f, --force Overwrite existing config file if it exists
DESCRIPTION
Initialize gwt in the current repositorySee code: src/commands/init.ts
gwt ls
List all git worktrees
USAGE
$ gwt ls [-a]
FLAGS
-a, --archive Include archived worktrees
DESCRIPTION
List all git worktreesSee code: src/commands/ls.ts
gwt new [BRANCHNAME]
Create a new git worktree
USAGE
$ gwt new [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the new branch
DESCRIPTION
Create a new git worktreeSee code: src/commands/new.ts
gwt pr create [BRANCHNAME]
Create a pull request for a worktree branch
USAGE
$ gwt pr create [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to create a PR for
DESCRIPTION
Create a pull request for a worktree branchSee code: src/commands/pr/create.ts
gwt pr merge [BRANCHNAME]
Merge a pull request for a worktree branch, fetch main, and archive the worktree
USAGE
$ gwt pr merge [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to merge PR for
DESCRIPTION
Merge a pull request for a worktree branch, fetch main, and archive the worktreeSee code: src/commands/pr/merge.ts
gwt pr view [BRANCHNAME]
Review a pull request for a worktree branch
USAGE
$ gwt pr view [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to view PR for
DESCRIPTION
Review a pull request for a worktree branchSee code: src/commands/pr/view.ts
gwt rm [BRANCHNAME]
Remove a git worktree and its branch
USAGE
$ gwt rm [BRANCHNAME] [-a] [-f] [-r]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to remove
FLAGS
-a, --archive Remove an archived worktree
-f, --force Force removal without prompting
-r, --[no-]remote Delete the remote branch as well
DESCRIPTION
Remove a git worktree and its branchSee code: src/commands/rm.ts
gwt unarchive [BRANCHNAME]
Unarchive a git worktree and run setup scripts
USAGE
$ gwt unarchive [BRANCHNAME]
ARGUMENTS
[BRANCHNAME] Name of the branch/worktree to unarchive
DESCRIPTION
Unarchive a git worktree and run setup scriptsSee code: src/commands/unarchive.ts
Made with ❤️ by Raju Bepary
