snippetbashTip
gt — Create and manage sequences of dependent code changes (stacks) for Git and GitHub. More information:
Viewed 0 times
sequencescreatecommandanddependentclimanagegt
Problem
How to use the
gt command: Create and manage sequences of dependent code changes (stacks) for Git and GitHub. More information: <https://graphite.com/docs/get-started>.Solution
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 initCreate 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 submitCheckout different branch (prompts interactive mode when branch name is omitted):
gt co {{branch_name}}Sync stack with remote version (also deletes merged branches):
gt syncLog all tracked stacks:
gt log shortDisplay help for a specified subcommand:
gt {{subcommand}} --helpCode Snippets
Initialize `gt` for the repository in the current directory
gt initCreate 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 submitCheckout different branch (prompts interactive mode when branch name is omitted)
gt co {{branch_name}}Context
tldr-pages: common/gt
Revisions (0)
No revisions yet.