Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions specs/graphite/gt_branch_checkout.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Graphite - Checkout a branch
command: "gt bco {{branch_name}}"
tags:
- graphite
description: "Switch to or checkout a branch. Similar to `git checkout <branch_name>`"
arguments:
- name: branch_name
description: The name of the branch that you want to checkout
default_value: main
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
10 changes: 10 additions & 0 deletions specs/graphite/gt_branch_create.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Graphite - Create a new branch stacked on top of the current branch and commit staged changes
command: "gt branch create"
tags:
- graphite
description: "Alias: `bc`. Create a new branch stacked on top of the current branch and commit staged changes. If no branch name is specified but a commit message is passed, generate a branch name from the commit message."
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
10 changes: 10 additions & 0 deletions specs/graphite/gt_branch_delete.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Graphite - Delete branch
command: "gt branch delete"
tags:
- graphite
description: "Alias: `bdl`. Delete a branch and its corresponding Graphite metadata."
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
14 changes: 14 additions & 0 deletions specs/graphite/gt_branch_down.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Graphite - Move down the stack of branches
command: "gt branch down {{step}}"
tags:
- graphite
description: "Quickly move down a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches."
arguments:
- name: step
description: The number of branches to pass when traversing the stack of branches.
default_value: 1
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
10 changes: 10 additions & 0 deletions specs/graphite/gt_branch_edit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Graphite - Run an interactive branch rebase
command: "gt branch edit"
tags:
- graphite
description: "Alias: `be`. Run an interactive rebase on the current branch's commits and restack upstack branches."
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
10 changes: 10 additions & 0 deletions specs/graphite/gt_branch_fold.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Graphite - Fold a branch's changes into its parent
command: "gt branch fold"
tags:
- graphite
description: "Alias: `bf`. Fold a branch's changes into its parent, update dependencies of descendants of the new combined branch, and restack."
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
10 changes: 10 additions & 0 deletions specs/graphite/gt_branch_list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Graphite - Log or show the stacked branch tree
command: "gt ls"
tags:
- graphite
description: "Log all stacks tracked by Graphite, arranged to show dependencies. Similar to showing the commit log."
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
14 changes: 14 additions & 0 deletions specs/graphite/gt_branch_new_with_commit_message.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Graphite - Create a branch with an accompanying commit message
command: "gt bc -am {{commit_message}}"
tags:
- graphite
description: "Create a new branch stacked on top of the current branch and commit staged changes. If no branch name is specified but a commit message is passed, generate a branch name from the commit message."
arguments:
- name: commit_message
description: The message to assign to this commit.
default_value: ~
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
10 changes: 10 additions & 0 deletions specs/graphite/gt_branch_rename.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Graphite - Rename a branch
command: "gt branch rename"
tags:
- graphite
description: "Alias: `brn`. Rename a branch and update metadata referencing it. Note that this removes any associated GitHub pull request."
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
10 changes: 10 additions & 0 deletions specs/graphite/gt_branch_restack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Graphite - Restacks the current branch to its parent
command: "gt branch restack"
tags:
- graphite
description: "Alias: `brn`. Ensure the current branch is based on its parent, rebasing if necessary."
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
14 changes: 14 additions & 0 deletions specs/graphite/gt_branch_up.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Graphite - Move up the stack of branches
command: "gt branch up {{step}}"
tags:
- graphite
description: "Quickly move up a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches."
arguments:
- name: step
description: The number of branches to pass when traversing the stack of branches.
default_value: 1
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
14 changes: 14 additions & 0 deletions specs/graphite/gt_downstack_get.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Graphite - Get downstack from remote
command: "gt dsg {{branch_name}}"
tags:
- graphite
description: "A popular command for getting a stack locally that's been created/manipulated by someone else. Oftentimes followed up with gt bdl to delete irrelevant branches locally."
arguments:
- name: branch_name
description: The name of the branch that you want to fetch from remote
default_value: main
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
11 changes: 11 additions & 0 deletions specs/graphite/gt_stack_bottom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Graphite - Jump to the bottom of the stack
command: "gt bb"
tags:
- graphite
description: "Quickly move all the way down (bb) the stack"
arguments: []
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
11 changes: 11 additions & 0 deletions specs/graphite/gt_stack_submit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Graphite - Submit stack
command: "gt ss"
tags:
- graphite
description: "Submit your changes across all PRs on a stack."
arguments: []
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
11 changes: 11 additions & 0 deletions specs/graphite/gt_stack_up.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Graphite - Jump to the top of the stack
command: "gt bt"
tags:
- graphite
description: "Quickly move all the way up (bt) the stack"
arguments: []
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
11 changes: 11 additions & 0 deletions specs/graphite/gt_synchronize_with_remote.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Graphite - Synchronize with remote
command: "gt rs -r"
tags:
- graphite
description: "A quick command to pull changes from your trunk branch and subsequently restack upstack changes. Same as `gt repo sync && gt stack restack` under the hood. Also deletes any branches that have been merged."
arguments: []
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []
10 changes: 10 additions & 0 deletions specs/graphite/gt_troubleshoot_graphite_cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Graphite - Troubleshoot the Graphite CLI
command: "gt repo init --reset && gt dev cache --clear"
tags:
- graphite
description: "This combination of commands resets Graphite repo metadata and clears the cache."
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
author: graphite
author_url: "https://graphite.dev/"
shells: []