So I have this exact need:

There is an upstream project doing their own thing over git and I want to build container images locally and commit them to my image repository all while following the same version system as upstream.

To be more precise (perhaps abstract) about my need, what is the best way to apply the same patch when upstream release a new version.

Any input and best practices or lessons learned are welcome.

  • dragnucsOP
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Currently I have a local repository with two remotes, one is mine, the other upstream. I just had to update today So I updated upstream, cherry-picked the last commit in new release branch and pushed to main (my origin).

    But I am too lazy to keep looking for which commit to cherry-pick.

    • pancake
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      On your remote, I’d have a branch tracking upstream, and a fork of it with your changes. Then you can either rebase it on top of new versions or merge the main branch into your fork periodically.

      • dragnucsOP
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

        Thanks. I am going to give this approach a try.