Closed tarsius closed 1 year ago
@epage Would git-stack support this workflow?
The old git stack --pull
will sync local branches with upstream.
It auto-filters for
There is a flag, --stack
, and a config field to control whether to only sync
main
)I have recently been reworking this workflow with git stack sync
(which git stack alias --register
will alias to git sync
). Currently it is hard coded to "every branch off your current branch" though it has the author auto-rules.
An auto-rule I have been considering is when --stack
is set to something that will pull in other stacks that it would skip stacks with a pushed branch so it doesn't unnecessarily rebase branches under review.
You have to define what "sync" and "all" mean. I am guessing you mean that every local branch whose configure upstream is a remote tracking branch should be updated to point at the same commit. If so, what is the "obviously only correct thing to do" if a fast-forward is not possible, in you opinion? Edit: Okay I saw your
git sync
now. It's neat, but I think it would make more sense to sync with the respective upstream than the main branch. Is it possible to not sync certain branches?