Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
gt Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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`