Triangular workflow
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Jan 13, 2026, 23:01 UTC
- Message-ID
- <20260113230107.16728-1-haraldnordgren@gmail.com>
- In-Reply-To
- <20260113214059.GC288857@coredump.intra.peff.net>
Hi Jeff!
I'm very happy that your responded respectfully despite me basically saying that you were using Git wrong. It's nice to see how some of the pros do it!
I'm wondering if since you are scripting this anyway, if you really need a push branch at all? Can't you just as easily switch to doing this in the script:
git config push.default upstream
git push github jk/some-topicAs a note, before I started working on this feature, I don't realize that there was such a thing as a push branch (i.e. something different from the tracking branch). So I had the habit of checking out and pushing like this:
git branch --set-upstream-to upstream/master
git push origin $(git rev-parse --abbrev-ref HEAD)I worked really well for me. The only issue was missing the status info from my own branch -- which is why I started writing this feature.
Harald