Skip to content

Workflow with regular git branches #14

@wavexx

Description

@wavexx

I'm frequently working on repositories where I have a dozen branches implementing various features, and frequently have to cooperate with upstream for months before they are merged. Meanwhile, I work on other features which depend on those patches. I was currently merging my branches manually, which was time consuming.

Sounds like topgit does exactly what I was doing manually, but I cannot understand what sort of workflow I should use in a few scenarios.

Let's assume I already created a PR branch that I need to work on before I started using topgit. Can I safely "depend" on it in a [STAGE] branch?

Now let's say upstream makes a new release while the regular branch was started. They ask to rebase on top of the new release. There's no [BASE] branch here, as the branch was created prior to using topgit. Can I rebase normally?

Another scenario involving rebase: let's assume I have two feature branches (feat1/feat2), with feat2 built on top of feat1.

t/base
  t/feat1
    t/feat2

At some point feat1 is implemented by upstream differently (not using the same commits but in a way that would make feat2 still working), making my changes redundant. What I'd do normally would be to drop feat1 and rebase feat2 on top of new master. What should I do with topgit here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions