Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
As a loose follow-up to Why force designation of a remote main branch?, is there a Git-native way to configure a branch for GitHub's so-called "triangular" workflow? The triangular workflow is mea...
#1: Initial revision
Configure Git branch to push to different remote than it pulls from
As a loose follow-up to [Why force designation of a remote main branch?](https://software.codidact.com/posts/293552), is there a Git-native way to configure a branch for [GitHub's so-called "triangular" workflow][triangle]? The triangular workflow is meant for synchronizing upstream branches, namely abbreviating this: ```sh git switch main git pull upstream/main git push origin/main ``` into this: ```sh git switch main git pull git push ``` GitHub has invented a `pushremote` property on the `[branch "foo"]` configuration to set this, but it only works with their `gh` CLI tool. Is there a way to suggest to Git (which can pull/push from different *branches*) to pull/push from different *remotes?* [triangle]: https://github.blog/open-source/git/how-the-github-cli-can-now-enable-triangular-workflows/
