Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 1.25 KB

Readme.md

File metadata and controls

72 lines (48 loc) · 1.25 KB

build

Stacked branches and github PR's

Caution

Heavy work in progress

G-stack is a CLI util to simplify creating stacked branches and pull requests on github.

Installation

brew tap bendzae/gstack

and then

brew install gstack

Configuration

To be able to create and modify github prs a personal access token is needed. Check the official github docs and make sure the token has read/write access to pull requests. Then create a config file with the following content in $HOME/.gstack/config.toml

personal_access_token = "<GITHUB_PERSONAL_ACCESS_TOKEN>"

Usage

Show available commands

gs help

Create a new stack

Creates a new stack with the current branch as a base and checks out the new branch

gs new

Add a new stack branch

Stacks a new branch on top of the current stac

gs add

Moving through stack branches

Move up and down trough stack branches with:

gs up
gs down

or interactively select a stack branch with

gs change
#or
gs c