2022-03-30 14:45:02 +01:00
|
|
|
# gt
|
|
|
|
|
|
|
|
> Create and manage sequences of dependent code changes (stacks) for Git and GitHub.
|
|
|
|
> More information: <https://docs.graphite.dev>.
|
|
|
|
|
|
|
|
- Authenticate the CLI with Graphite's API:
|
|
|
|
|
|
|
|
`gt auth --token {{graphite_cli_auth_token}}`
|
|
|
|
|
|
|
|
- Initialise `gt` for the repository in the current directory:
|
|
|
|
|
|
|
|
`gt repo init`
|
|
|
|
|
|
|
|
- Create a new branch stacked on top of the current branch and commit staged changes:
|
|
|
|
|
|
|
|
`gt branch create {{branch_name}}`
|
|
|
|
|
|
|
|
- Create a new commit and fix upstack branches:
|
|
|
|
|
|
|
|
`gt commit create -m {{commit_message}}`
|
|
|
|
|
|
|
|
- Force push all branches in the current stack to GitHub and create or update PRs:
|
|
|
|
|
|
|
|
`gt stack submit`
|
|
|
|
|
|
|
|
- Log all tracked stacks:
|
|
|
|
|
|
|
|
`gt log short`
|
|
|
|
|
2024-01-30 04:55:24 +00:00
|
|
|
- Display help for a specified subcommand:
|
2022-03-30 14:45:02 +01:00
|
|
|
|
|
|
|
`gt {{subcommand}} --help`
|