main branches locally
main branches locally
Posted Oct 23, 2025 15:27 UTC (Thu) by josh (subscriber, #17465)In reply to: main branches locally by Wol
Parent article: Git considers SHA-256, Rust, LLMs, and more
The fork would be a repository that has the metadata pointing to the upstream repo, and holds feature branches used for filing PRs, just as it is now; the only difference would be that it'd stop having a `main` branch that serves no function. main is not the metadata that points to the upstream repo.
> (b) you have no record that it IS a fork, and hence no way to update your fork from the original project.
My fork doesn't get "updated from the original project", it gets new feature branches pushed to it and used to submit PRs to the original project. Those feature branches are pushed from my local repository, which in turn has a remote for both the upstream origin and my fork. The workflow is "update origin, create new feature branch from origin/main, make commits, push feature branch to fork, create PR for fork, delete branch when PR is merged". At no point in that process is my fork's main branch useful in any way.
