Skip to content

About

`git pull` for gh-stack

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

gh stack-pull

git pull for gh-stack. This package exists to fix a bug work-around a feature in gh stack sync

The problem

When editing stacks from two machines, gh stack sync drops the updates from remote silently. Worse than that gh stack provides no solution . A better name for how gh stack sync is currently implemented should be gh stack force-push.

gh-stack issue #516.

gh stack-pull is a cure: git pull for the whole stack. Fast-forwards what it can, stops on a diverged branch; --rebase replays your local commits on top of the remote instead, like git pull --rebase.

gh stack-pull [--rebase] [--remote <name>]

Install

gh extension install Romex91/gh-stack-pull

Requires gh with the gh-stack extension, git, and jq.

Working from two machines

Start every session with gh stack-pull, end it with gh stack sync. Unpushed commits are fine: the next gh stack-pull --rebase on that machine adopts whatever the other machine pushed and replays them on top.

About

`git pull` for gh-stack

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages