Re: Triangular workflow
From: Ben Knoble <hidden>
Date: 2026-01-14 21:38:47
Le 14 janv. 2026 à 11:31, Jeff King [off-list ref] a écrit :quoted
quoted
Yeah, though @{push} is usually not explicitly configured in the same way @{upstream} is, but rather a consequence of how push.default and remote.pushdefault interact. But it was added for exactly this kind of triangular workflow. I sometimes will do stuff like: git range-diff origin @{push} HEADI imagine the same thing could be achieved with origin/$(git rev-parse --abbrev-ref HEAD)Sure, but: 1. It is a lot shorter to type @{push}. ;) 2. Using @{push} works everywhere, even on my non-triangular repos,
Just so I’m clear, this is only with push.default=current, right? I could never make @{push} work otherwise.