← 返回命令列表

Linux command

gt 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create new branch

gt branch create [branch-name]

Submit stack for review

gt stack submit

Sync with remote

gt repo sync

List branches in stack

gt log

Checkout branch

gt branch checkout [branch-name]

说明

gt (Graphite) is a CLI for stacked diffs workflow. It manages dependent branches and streamlines code review by organizing changes into logical stacks. The tool integrates with GitHub for pull request management. It simplifies rebasing and updating of branch stacks.

参数

branch create
Create new branch.
stack submit
Submit stack for code review.
repo sync
Synchronize with remote.
log
Show branch stack.
--help
Display help information.

FAQ

What is the gt command used for?

gt (Graphite) is a CLI for stacked diffs workflow. It manages dependent branches and streamlines code review by organizing changes into logical stacks. The tool integrates with GitHub for pull request management. It simplifies rebasing and updating of branch stacks.

How do I run a basic gt example?

Run `gt branch create [branch-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does branch create do in gt?

Create new branch.