Learn how to configure the Graphite CLI to customize and speed up your workflow.
zsh
, bash
, and fish
tab completion. You can run one of the following commands:
gt config
to open an interactive menu which lets you configure your Graphite CLI. The options are described in more detail below.
~/.config/graphite
, unless you have $XDG_CONFIG_HOME
set.gt create
, then Graphite will generate one for you based on the commit message.
There are several options to configure:
git
editor for drafting PR descriptions and other flows that require editing text. You can configure a different editor.
By default, Graphite opens PR descriptions and other flows that require editing text in the git
pager. You can configure a different pager, or disable paging entirely.
Note that just like git, Graphite sets the environment variables LESS=FRX
and LV=-c
if they are not already set. If something else is setting your LESS
env var, you can use gt user pager --set "less -FRX"
to get the recommended pager settings.
GT_EDITOR
and GT_PAGER
environment variables, respectively.git rebase
flag --committer-date-is-author-date
is useful if you don’t want your Graphite restack operations to update the committer date of the commits in your branches. In order to have Graphite’s internal rebases use this flag, you can enable this configuration.
.git
folder of your repository.origin
.If you have configured a different name for your remote, you can set it manually.