1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 12:15:27 +02:00

gt: add page (#7926)

* gt: add page

graphite.dev

* gt: fix review suggestions

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* gt: fix commands to longhand, explain auth better

* gt: fix typos

* Update pages/common/gt.md

Co-authored-by: Emily Grace Seville <emilyseville7cf@gmail.com>
Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
Co-authored-by: Emily Grace Seville <emilyseville7cf@gmail.com>
Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>
This commit is contained in:
Paul Somers 2022-03-30 14:45:02 +01:00 committed by GitHub
parent 8f25ac9cf5
commit a456da2822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

32
pages/common/gt.md Normal file
View file

@ -0,0 +1,32 @@
# 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`
- Print help for a specified subcommand:
`gt {{subcommand}} --help`