gt

Create and manage sequences of dependent code changes (stacks) for Git and GitHub.

TLDR

Authenticate the CLI with Graphite's API

$ gt auth --token [graphite_cli_auth_token]
copy


Initialise gt for the repository in the current directory
$ gt repo init
copy


Create a new branch stacked on top of the current branch and commit staged changes
$ gt branch create [branch_name]
copy


Create a new commit and fix upstack branches
$ gt commit create -m [commit_message]
copy


Force push all branches in the current stack to GitHub and create or update PRs
$ gt stack submit
copy


Log all tracked stacks
$ gt log short
copy


Print help for a specified subcommand
$ gt [subcommand] --help
copy

Copied to clipboard