main branches locally
main branches locally
Posted Oct 22, 2025 23:38 UTC (Wed) by josh (subscriber, #17465)In reply to: main branches locally by gioele
Parent article: Git considers SHA-256, Rust, LLMs, and more
> 2. A certain branch (main) should always be pulled from a certain remote (upstream) but always pushed to another one (myfork).
I wish the fork repository didn't have a main branch at *all*; I only want to push feature branches to my fork, not some stale main branch.
> 3. Even if I have r/w access to the upstream repository, it should never ever push any branch or tag to that repository.
Yeah, I'd like to have that as a local guard, though you can use server settings to block that so that *nobody* has push access.
