For those familiar with Git terminology:

The simplest way to assemble a triangular workflow is to set the branch’s merge key to a different branch name, like so:

[branch “branch”]
   remote = origin
   merge = refs/heads/default

This will result in the branch pullRef as origin/default, but pushRef as origin/branch, as shown in Figure 9.

Working with triangular forks requires a bit more customization than triangular branches because we are dealing with multiple remotes. […]

  • abbadon420@lemm.ee
    link
    fedilink
    arrow-up
    4
    ·
    9 hours ago

    For a single PR it’s pretty much the same, but if you have multiple back and forth, you’d have to set up multiple remotes and switch between them. Now you don’t. If I understand it correctly, you can now just “git pull” from repo1 and “git push” to repo2