1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/gt.md
Vitor Henrique 46a054215a
pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

32 lines
744 B
Markdown

# 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`
- Display help for a specified subcommand:
`gt {{subcommand}} --help`