Skip Navigation

How the GitHub CLI can now enable triangular workflows

github.blog

How the GitHub CLI can now enable triangular workflows

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. […]

5 comments