mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
42 lines
927 B
Plaintext
42 lines
927 B
Plaintext
---
|
|
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://graphite.com/docs/get-started>.
|
|
|
|
- Initialize `gt` for the repository in the current directory:
|
|
|
|
`gt init`
|
|
|
|
- Create a new branch stacked on top of the current branch and commit staged changes:
|
|
|
|
`gt create {{branch_name}}`
|
|
|
|
- Create a new commit and fix upstack branches:
|
|
|
|
`gt modify -cam {{commit_message}}`
|
|
|
|
- Force push all branches in the current stack to GitHub and create or update PRs:
|
|
|
|
`gt stack submit`
|
|
|
|
- Checkout different branch (prompts interactive mode when branch name is omitted):
|
|
|
|
`gt co {{branch_name}}`
|
|
|
|
- Sync stack with remote version (also deletes merged branches):
|
|
|
|
`gt sync`
|
|
|
|
- Log all tracked stacks:
|
|
|
|
`gt log short`
|
|
|
|
- Display help for a specified subcommand:
|
|
|
|
`gt {{subcommand}} --help`
|